blog.wuhui.sh.cn 分享知识 交流技术
linux gtk install
上一篇 /
下一篇 2008-07-15 15:42:24
/ 个人分类:软件应用
人家的安装步骤
eW?j6CC-l#P
d0./configure --prefix=/usr DOIT博客Yf{ZC}0p0SF/I
意思是需要最终编译安装的文档将放在/usr目录下的相关子目录如/usr/lib,/usr/bin等,
8@dA5C1{6V? `*P0 而假如您使用默认值如: DOIT博客#r u*~-TDu1L/g
./configure DOIT博客 `a.J?:@Z
}
则一般会默认为安装在/usr/local目录下相关子目录,这时一般需要您配置PKG_CONFIG_PATH等 DOIT博客sa3Fg&y!a{
所以,总而言之,言而总之,要装最新的gtk+2.6用下列方法就能够:
^|
nz$NJ`0 1)安装glib-2.6.1:
|+b?!}yl&x ]h9n0 cd glib-2.6.1 DOIT博客EBpv%D:|;T
./configure --prefix=/usr DOIT博客K_G:Ah:v
make
I2lq0J*p a*r;hqS0 make install
csL m!|:Y Es0@3V `0 2)安装pango-1.8.0 DOIT博客5[5f#sfcr Kr
cd pango-1.8.0 DOIT博客 \9XDH)H2N2^I,HKe
./configure --prefix=/usr DOIT博客*C z9trfcI
make DOIT博客!L,e?'hD
make install DOIT博客z?3`yTR
3)安装atk-1.9.0
#zI5AB6a0 cd atk-1.9.0
:e$U y~6y
ZQ8Lr/J0 ./configure --prefix=/usr DOIT博客^M^eER
}
make DOIT博客
a![r*`7G"CW}
make install
t"qq?n0 4)最后安装gtk+-2.6.1 DOIT博客){+G'_fE mm
cd gtk+-2.6.1 DOIT博客
R6UP"A
j`
./configure --prefix=/usr DOIT博客M4^0fa|5o#M,}
make
#O3FL
W de^_0 make install DOIT博客u i:FlE#z,R0y
}5f0F{1F.|1])Y0 我升级我的gtk+时都是这样升级的,我的系统也是redhat9,我的gnome2.8.1基本也是这样升起来得.DOIT博客q7f&A}Z-L r p/S+W
安装GTK是为了skyeye能支持LCD的仿真,但是没想到一个GTK居然如此难搞定,经历一番艰苦的摸索,终于还是MAKE成功了。。
w ^r#t5hP(m!_%rRs@0安装文档:(真不好找啊)gtk-2.10.3,need pre:atk-1.11.4/cairo-1.2.4/glib-2.12.4/pango-1.14.0DOIT博客h
y^e&N(j+m:S3q h
正确安装顺序:DOIT博客6zfs ^d
1.glib:这步太关键了,浪费的时间机会全在这里,开始安装到pango及后面gtk时总报
V&A]&VZ0xf0checking for GLIB - version >;= 2.0.0...
IK;G C#r\rU7w8o0*** 'pkg-config --modversion glib-2.0' returned 2.12.4, but GLIB (2.2.1)
8Wpr![b'E5T5^U0*** was found! If pkg-config was correct, then it is bestDOIT博客 JGZ;lPF"l
*** to remove the old version of GLib. You may also be able to fix the errorDOIT博客m:B+EZ0P6p
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editingDOIT博客Wz4d$@)PYy ]*yj
*** /etc/ld.so.conf. Make sure you have run ldconfig if that isDOIT博客!B@&b F kHL)O
*** required on your system.
%[V
q$r#jl0*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATHDOIT博客NM8c9\Z;L!`2XyDN
*** to point to the correct configuration files
8nr;O8sp7V$O
q8O0X0noDOIT博客#d$?;IaoL6qgR
configure: error:
0r8Z ivqd+|Jqv0*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
!Ey \R.Qf?*c0*** development headers installed. The latest version of GLib is
*b6},w;xl0*** always available atDOIT博客
@;n8Va;~7d3}^%qJ
http://www.gtk.org/DOIT博客6Hv
?#H0f
.
/N7`Pz v3M#|"h.^0真是被他气死,版本换到最高级还是不球行,网络上的解决方案几乎全没用,大量失败后发现原来是系统自带的glib2.2.1捣的鬼,要删除,怎么删呢,不会啊,于是接着找,谢谢deeperpurple提供了思路,方法如下:DOIT博客4uQ4y*s!tL|~
cd glib-2.14.2DOIT博客Y*kw^+O8\!i
make uninstall 反安装DOIT博客XqOC5d1v c1jY2q
s
#rm /usr/bin/glib* //删除系统自带DOIT博客!z.|8lb9Bk?4f
#rm /usr/local/lib/glib-2.0 //同上DOIT博客7{7s&D8j7G;HB{ZG
重新编译安装 glib-2.14.2 还在/usr/local目录下, 然后配置环境变量DOIT博客b2a8ub&rP5zUwd
#export LD_LIBRARY_PATH=/usr/local/libDOIT博客hN9n!zP
S
#export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
7v4x9T8ow$f3`#@R0make install
)]T$f\$Ke0DOIT博客Jc)K4vhT
2.atk-1.11.4DOIT博客d_)e8Z)?0Va
./configureDOIT博客o9L;_+r:Ax
makeDOIT博客'b(M0ibems-x
make installDOIT博客L fy
Z7ox$sz&V
DOIT博客Q'lP@#r%I
3.cairo-1.2.4
/e}VQ9X,iK0readme中说用cairo-1.2.0就能够了,结果还是出错,还得换成1.2.4DOIT博客c"Bs.[9Ka^[
./configure
gp6Z"pTM'L,tt0make
uB*xSW5kW5Sv0make installDOIT博客n/Z\%HY\1o e-v'w
DOIT博客{5F&tzC n3W&De
4.pango-1.14.0DOIT博客!~!Ey,WG7O!t gs9N
DOIT博客%}R"~Z;Adh
5.gtk+-2.10.3
4v,\veQN&s0大概试了有20次了,成功的那次make花了40分钟,一堆堆的~~
导入论坛
引用链接
收藏
分享给好友
管理
举报
TAG:
Linux
linux
gtk
install