cht電腦資訊gcin已解決問題
adm Find login register

[求救] 在 ./configure 時出現錯誤

guest
1 [求救] 在 ./configure 時出現錯誤
Promote 0 Bookmark 02008-06-24quote  

$ ./configureprefix: /usr/local
.... Testing gtk+-2.0 : Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
gtk+-2.0 or above required --cflags

請問該怎麼辦呢?
我是用Ubuntu 8.04

guest
3
Promote 0 Bookmark 02008-06-24quote  

$ sudo apt-get build-dep gcin
讀取套件清單中... 完成
了解套件依存關係中      
Reading state information... 完成
E: 無法滿足套件 gcin 所要求的建構相依關係。

然後

$ sudo dpkg-buildpackage -b
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package gcin
dpkg-buildpackage: source version 1.4.2-1~1
dpkg-buildpackage: source changed by Wen-Yen Chuang <caleb@calno.com>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: libgtk2.0-dev (>= 2.10.1) libxtst-dev libqt3-mt-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)

再來

$ sudo dpkg-buildpackage -d
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package gcin
dpkg-buildpackage: source version 1.4.2-1~1
dpkg-buildpackage: source changed by Wen-Yen Chuang <caleb@calno.com>
dpkg-buildpackage: host architecture i386
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
touch .depend
[ ! -f Makefile ] || /usr/bin/make clean
make[1]: Entering directory `/home/jackblackevo/gcin-1.4.2'
Makefile:3: config.mak: 沒有此一檔案或目錄
./configure
prefix: /usr/local
.... Testing gtk+-2.0 : Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
gtk+-2.0 or above required --cflags
make[1]: *** [config.mak] Error 255
make[1]: Leaving directory `/home/jackblackevo/gcin-1.4.2'
make: *** [clean-patched] Error 2
dpkg-buildpackage: failure: debian/rules clean gave error exit status 2

cht電腦資訊gcin已解決問題
adm Find login register
views:4929