我正在尝试在我的Mac上安装一些软件;但是我一直收到同样的错误:
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables XMEDCON_GLIB_CFLAGS
and XMEDCON_GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
我不太确定如何将pkg-config添加到PATH。我在网上看到(见链接)我应该添加以下内容:
Link showing how to direct PATH variable
export PATH=$PATH:/opt/local/bin # Fixed typo as mentioned in comment
这是我放置pkg-config的地方。每次我尝试使用./configure配置文件时,我仍然会收到错误。任何帮助都会非常感激!
答案 0 :(得分:58)
对于Ubuntu / Debian OS,
Cluster 00F9 : FB0FA0 Entry
Cluster 00FA : D0FC0FB Entry
Cluster 00FB : FD0FC0 Entry
Cluster 00FC : F0FE0FD Entry
Cluster 00FD : FF0FE0 Entry
Cluster 00FE : 11000FF Entry
Cluster 00FF : 1011000 Entry
Cluster 0100 : 3102101 Entry
Cluster 0101 : 1031021 Entry
Cluster 0102 : 5104103 Entry
Cluster 0103 : 1051041 Entry
Cluster 0104 : 7FFF105 Entry
Cluster 0105 : 107FFF1 Entry
Cluster 0106 : FFFF107 Entry
Cluster 0107 : FFFFFF1 Entry
Cluster 0108 : B10AFFF Entry
Cluster 0109 : 10B10AF Entry
Cluster 010A : D10C10B Entry
Cluster 010B : 10D10C1 Entry
Cluster 010C : F10E10D Entry
Cluster 010D : FFF10E1 Entry
Cluster 010E : 1110FFF Entry
Cluster 010F : 111110F Entry
对于Redhat / Yum OS,
apt-get install -y pkg-config
答案 1 :(得分:24)
回答我的问题(经过几次谷歌搜索后)发现了以下内容:
$ curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz -o pkgconfig.tgz
$ tar -zxf pkgconfig.tgz && cd pkg-config-0.29
$ ./configure && make install
来自以下链接:Link showing above
感谢大家的评论,对不起我的linux / OSX无知!
这样做解决了我上面提到的问题。
答案 2 :(得分:19)
对我来说,(OSX)这个问题解决了这个问题:
brew install pkg-config
答案 3 :(得分:8)
如果您有此错误:
configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.
而不是执行此命令:
$ ./configure && make install
那样做:
./configure --with-internal-glib && make install
答案 4 :(得分:0)
尝试