我正在尝试在我的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中。我在网上看到(请参见链接),应该添加以下内容:
export PATH=$PATH:/opt/local/bin # Fixed typo as mentioned in comment
这是我安装pkg-config的位置,但每次尝试使用./configure配置文件时仍然会出现错误。非常感谢任何帮助!
export PATH=$PATH:/opt/local/bin
中,您缺少一个冒号。这假定/opt/local/bin/pkg-config
存在且是您想要的版本。 - tripleeewhich pkg-config
的输出是什么? - StvnW