[csw-maintainers] "pkgconfig --exist ..." is telling porkies

James Lee james at opencsw.org
Tue Jul 7 21:25:56 CEST 2009

Anyone understand pkgconfig?  This looks easy but I'm blind as to why
it's not working:

build8s:/home/james$ export PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig
build8s:/home/james$ if /opt/csw/bin/pkg-config --exists 'gtk+-2.0'
if> then
then>    echo YES
then> else
else>    echo NO
else> fi
sh: gnome-config: not found
build8s:/home/james$ ls -l /opt/csw/lib/pkgconfig/gtk+-2.0.pc
-rw-r--r--   1 root     bin          345 Jun  7  2008

There seems to be a dependency problem but I still can't work out what's
gone missing:

$ /opt/csw/bin/pkg-config --libs 'gtk+-2.0'
sh: gnome-config: not found
Package xcb was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb', required by 'cairo', not found

Help!  I'm close to editing "if true" in to my good friend the
configure file.


More information about the maintainers mailing list