Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1514366
  • 博文数量: 416
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 3287
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-05 11:12
个人简介

技术在于专研

文章分类

全部博文(416)

文章存档

2021年(3)

2015年(34)

2013年(2)

2012年(1)

2011年(2)

2010年(5)

2007年(344)

2006年(25)

分类: LINUX

2007-04-14 12:09:47

人家的安装步骤

./configure   --prefix=/usr  
  意思是要求最终编译安装的文件将放在/usr目录下的相关子目录如/usr/lib,/usr/bin等,  
  而如果你使用默认值如:  
  ./configure  
  则一般会默认为安装在/usr/local目录下相关子目录,这时一般需要你设置PKG_CONFIG_PATH等  
  所以,总而言之,言而总之,要装最新的gtk+2.6用下列方法就可以:  
  1)安装glib-2.6.1:  
  cd   glib-2.6.1  
  ./configure   --prefix=/usr  
  make  
  make   install  
  2)安装pango-1.8.0  
  cd   pango-1.8.0  
  ./configure   --prefix=/usr  
  make  
  make   install  
  3)安装atk-1.9.0  
  cd   atk-1.9.0  
  ./configure   --prefix=/usr  
  make  
  make   install  
  4)最后安装gtk+-2.6.1  
  cd   gtk+-2.6.1  
  ./configure   --prefix=/usr  
  make  
  make   install  
   
  我升级我的gtk+时都是这样升级的,我的系统也是redhat9,我的gnome2.8.1基本也是这样升起来得.

安装GTK是为了skyeye能支持LCD的仿真,但是没想到一个GTK居然如此难搞定,经历一番艰苦的摸索,终于还是MAKE成功了。。
安装文件:(真不好找啊)gtk-2.10.3,need pre:atk-1.11.4/cairo-1.2.4/glib-2.12.4/pango-1.14.0
正确安装顺序:
1.glib:这步太关键了,浪费的时间机会全在这里,开始安装到pango及后面gtk时总报
checking for GLIB - version >;= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.12.4, but GLIB (2.2.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at .
真是被它气死,版本换到最高级还是不球行,网络上的解决方案几乎全没用,大量失败后发现原来是系统自带的glib2.2.1捣的鬼,要删除,怎么删呢,不会啊,于是接着找,谢谢deeperpurple提供了思路,方法如下:
cd glib-2.14.2
make uninstall 反安装
#rm /usr/bin/glib*  //删除系统自带
#rm /usr/local/lib/glib-2.0 //同上
重新编译安装 glib-2.14.2 还在/usr/local目录下, 然后设置环境变量
#export LD_LIBRARY_PATH=/usr/local/lib
#export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make install
 
2.atk-1.11.4
./configure
make
make install
 
3.cairo-1.2.4
readme中说用cairo-1.2.0就可以了,结果还是出错,还得换成1.2.4
./configure
make
make install
 
4.pango-1.14.0
 
5.gtk+-2.10.3
大概试了有20次了,成功的那次make花了40分钟,一堆堆的~~
 
遗憾是gtk安装完了发现mozilla无法启动了,唉,也够累了,今天就到这,明天再研究吧。

好像都很顺利似的,晕倒

阅读(877) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~