Lots of makefiles use pkg-config but the names don't relate to package managers (e.g. yum / apt). How to map pkg-config names to them? is there a trick?
Example: if I do yum searchName -- look through the name and approximate to pkg-config's name
Result:
$ pkg-config --libs dbus-glib-0
Package dbus-glib-0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-glib-0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-glib-0' found
$ sudo yum install dbus-glib
Loaded plugins: langpacks, refresh-packagekit
Package dbus-glib-0.100-5.fc19.i686 already installed and latest version
Nothing to do
$ sudo yum install dbus-glib-0
Loaded plugins: langpacks, refresh-packagekit
No package dbus-glib-0 available.
Error: Nothing to do
The pkg-config files are usually provided by the
-develpackage so in most casesfoo.pcis provided bylibfoo-devel. That's still guesswork, but there are two shortcuts:Installing by path name, if you know where the
.pcfile will end upThat works for any file, but you still need to guess where the
.pcfile is. The best approach is using the actual pkgconfig requirement:Use the quotes to avoid the shell trying to interpret the parentheses.