SUSE筆記 安裝GTK

2021-05-27 08:57:56 字數 2781 閱讀 5152

suse筆記:安裝gtk+

********************==

shell> mkdir -p /opt/gtk

shell> export ld_library_path=/opt/gtk/lib:$ld_library_path

shell> export pkg_config_path=/opt/gtk/lib/pkgconfig:$pkg_config_path

*** 注:上面這3行可是相當重要啊!!! ***

pkg-config

------------

shell> tar zxvf pkg-config-0.21.tar.gz

shell> cd pkg-config-0.21/

shell> ./configure

shell> make

shell> make uninstall

shell> su -c "make install" root

glib-2.0

----------

shell> tar jxvf glib-2.13.0.tar.bz2

shell> cd glib-2.13.0/

shell> ./configure --prefix=/opt/gtk

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

*** 注:安裝路徑是 /opt/gtk ***

libpng

--------

shell> tar zxvf libpng-1.2.16.tar.gz

shell> cd libpng-1.2.16/

shell> ./configure --prefix=/opt/gtk

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

還有一種安裝方法可以參考:

shell> make -f scripts/makefile.linux

shell> make -f scripts/makefile.linux install

jpeg

------

shell> tar zxvf jpegsrc.v6b.tar.gz

shell> cd jpeg-6b/

shell> ./configure --prefix=/opt/gtk/ --enable-shared --enable-static

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

*** 注:jpeg預設不share library,因此要手工指定--enable-shared,一般安裝lib時這一點都是要注意的。 ***

tiff

------

shell> tar zxvf tiff-3.8.2.tar.gz

shell> cd tiff-3.8.2/

shell> ./configure --prefix=/opt/gtk

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

atk-----

shell> tar zxvf atk-1.18.0.tar.gz

shell> cd atk-atk-1.18.0/

shell> ./configure --prefix=/opt/gtk

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

cairo

-------

shell> tar zxvf cairo-1.4.2.tar.gz

shell> cd cairo-1.4.2/

shell> ./configure --prefix=/opt/gtk/ --with-x --enable-win32=no

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

pango

-------

shell> tar jxvf pango-1.16.1.tar.bz2

shell> cd pango-1.16.1/

shell> ./configure --prefix=/opt/gtk/ --libdir=/opt/gtk/lib --with-x

shell> make

shell> su -c "make uninstall" root

shell> su -c "make install" root

gtk+

------

shell> tar jxvf gtk+-2.10.11.tar.bz2

shell> cd gtk+-2.10.11/

shell> ./configure --prefix=/opt/gtk/ --with-x --without-libjpeg

shell> su -c "make uninstall" root

shell> su -c "make install" root

suse安裝snmp SUSE snmp安裝

suse9 10 版本原始碼安裝snmp service snmpd stop chkconfig snmpd off tar xvzf net snmp 5.6.2.1.tar.gz cd net snmp 5.6.2.1 configure make make install mkdir p u...

GTK 安裝方法

安裝 1 安裝gcc g gdb make 等基本程式設計工具 sudo apt get install build essential 2 安裝 libgtk2.0 dev libglib2.0 dev 等開發相關的庫檔案 sudo apt get install gnome core devel...

suse安裝sysstat工具

我們開發環境用的是64位的suse 10。今天同事要用iostat工具,發現沒有安裝sysstat包。於是他從光碟裡找到sysstat 6.0.2 16.4.x86 64.rpm包,然後執行rpm ivh sysstat 6.0.2 16.4.x86 64.rpm,但死活裝不上,報需要gnuplot...