最佳答案
我正在尝试在我的 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 的地方。尽管每次尝试使用。/配置。任何帮助都将不胜感激!