許多makefile使用pkg-config,但名稱與包管理器(例如yum/apt)無關。如何將pkg-config名稱映射到它們?有一個竅門嗎?如何將pkg-config名稱映射到yum/apt-get
例子:如果我做yum searchName
- 期待通過名稱和近似於pkg配置的名稱
結果:
$ 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