天天看点

centos6.5 源码安装 gtk 环境

解决 No package ‘gtk+-2.0′ found问题

方法:yum install libgnomeui-devel

执行了上面的,下面的就可以放弃了,yum 大法好

首先 yum 安装下面这两库:

yum install cairo-devel

yum install libtiff*

源码下载

wget http://ftp.gnome.org/pub/gnome/sources/atk/1.30/atk-1.30.0.tar.bz2

wget http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.21/gdk-pixbuf-2.21.4.tar.bz2

wget http://ftp.gnome.org/pub/gnome/sources/glib/2.26/glib-2.26.1.tar.bz2

wget http://ftp.gnome.org/pub/gnome/sources/pango/1.27/pango-1.27.1.tar.bz2

wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.0.tar.bz2

安装顺序是:glib、gdk、pango、atk、gtk+、

tar xf *.tar.bz2

./configure --prexf=/usr/local/ && make &&make install

centos6.5 源码安装 gtk 环境
gtk