我正在尝试在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 .
See `config.log' for more details
我不太确定如何将pkg-config添加到PATH。 我在网上看到(请参阅链接)我应该添加以下内容:
链接显示如何直接引导PATH变量
export PATH=$PATH:/opt/local/bin # Fixed typo as mentioned in comment
这是我放置pkg-config的地方。 尽管每次尝试使用./configure配置文件时,我仍然总是收到错误消息。 任何帮助将不胜感激!