のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Package gtk+-2.0 was not found in the pkg-config search path

checking for gtk+-2.0 >= 2.10.0 gtk+-unix-print-2.0 glib-2.0 gobject-2.0 gdk-x11-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 

 Package gtk+-unix-print-2.0 was not found in the pkg-config search path.
 Perhaps you should add the directory containing `gtk+-unix-print-2.0.pc' 
 to the PKG_CONFIG_PATH environment variable 
 No package 'gtk+-unix-print-2.0' found 
 
 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 

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

 Package gdk-x11-2.0 was not found in the pkg-config search path.
 Perhaps you should add the directory containing `gdk-x11-2.0.pc' 
 to the PKG_CONFIG_PATH environment variable 
 No package 'gdk-x11-2.0' found

configure: error: Library requirements 
(gtk+-2.0 >= 2.10.0 gtk+-unix-print-2.0 glib-2.0 gobject-2.0 gdk-x11-2.0) not met;
 consider adjusting the PKG_CONFIG_PATH environment variable 
if your libraries are in a nonstandard prefix so pkg-config can find them.
Fix above errors and then restart with "make -f client.mk build"
pkg config - PKG_CONFIG_PATH environment variable - Ask Ubuntu
$ locate pkg-config
/etc/bash_completion.d/pkg-config
/usr/bin/pkg-config
/usr/share/pkg-config-crosswrapper
/usr/share/doc/pkg-config
/usr/share/doc/pkg-config/AUTHORS
/usr/share/doc/pkg-config/NEWS.gz
/usr/share/doc/pkg-config/README
/usr/share/doc/pkg-config/changelog.Debian.gz
/usr/share/doc/pkg-config/copyright
/usr/share/doc/pkg-config/pkg-config-guide.html
/usr/share/man/man1/pkg-config.1.gz
/var/lib/dpkg/info/pkg-config.list
/var/lib/dpkg/info/pkg-config.md5sums
Building firefox on 9.04 64bit - configure can't find gtk+-2.0