天天看點

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