How did you obtain and install
If you just installed the
libconfig8 package, that is not enough. You also need to install the
-dev package corresponding to it, in order to provide the development files (headers, static link library, and pkg-config data). I was able to find that for libconfig for precise on packages.ubuntu.com. So
sudo apt-get install libconfig8-dev
should do the trick.
As you can see from here, the file list for this package contains the following file path:
This is precisely the file that
pkg-config needs to be able to pull out the
LDFLAGS corresponding to
This directory is on the "built-in'
pkg-config search path out of the box on Ubuntu. For this reason, it is not necessary to set
PKG_CONFIG_PATH. You would only ever set that environment variable if you need
pkg-config to look in directories other than those which it searches by default. So if you compiled a program and installed it in
/home/user/apps/blah and the file
/home/user/apps/blah/lib/pkg-config/libblah.pc needed to be available to
pkg-config, you would set:
pkg-config find that installation of
However, since you are installing
libconfig from Ubuntu itself, it will automatically "plunk" the .pc file in the correct search directory.