atkインストール

 

http://www.gtk.org のFTPサイトから atk-1.2.0.tar.gz ファイルをダウンロードする。

 

バイナリの場合

まず、解凍する。

tar zxvf atk-1.2.0.tar.gz

 

解凍すると、atk-1.2.0 ディレクトリが作られるので、そこに移動する。

cd atk-1.2.0

 

デフォルトのインストール先を変更したい場合は、prefixを設定する。

/usr/local/ などにインストールする場合は、su を実行してスーパーユーザになる必要がある。

./configure --prefix=/opt/sfw/

以下のようなエラーがでるかもしれない。
<省略>
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.


もしくは

<省略>
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found]

su
vi /etc/ld.so.conf
/opt/sfw/lib
上の1行を追加する
(glibがインストールされている所)
/sbin/ldconfig

bashの場合
LD_LIBRARY_PATH=/opt/sfw/
lib
export LD_LIBRARY_PATH
PKG_CONFIG_PATH=/opt/sfw/bin(pkgconfigがインストールされている所)
export PKG_CONFIG_PATH

cshの場合
setenv LD_LIBRARY_PATH /opt/sfw/
lib
setenv
PKG_CONFIG_PATH /opt/sfw/bin(pkgconfigがインストールされている所)

make
make install


 

 

Linux/Solarisへ戻る


 

 

 

 

 

 

 

E-listBBSSearchRankingCollegeLife-CafeGo to Top