2017-10-18 846 views
0

我已阅读了关于此的几篇文章。
但他们没有解决从我的。mac错误:未找到pkg-config(即使已安装pkg-config)

请参阅信息

brew install pkg-config 

完成安装,然后

Rangers-iMac:dash ranger$ which pkg-config 
/usr/local/bin/pkg-config 

这意味着安装pkg配置。

Rangers-iMac:dash ranger$ ./configure 
... 
checking for exit in -lboost_chrono-mt... yes 
checking whether the Boost::Unit_Test_Framework library is available... yes 
checking for dynamic linked boost test... yes 
configure: error: pkg-config not found. 

这意味着configure无法找到pkg-config。

我认为问题出在PATH中,但我无法弄清楚如何解决它。

+0

如果它不在路径中,它不会找到pkg-config。也许配置调用做一些奇怪的事情。你想建什么包? – deets

+0

看看:https://github.com/dashpay/dash/blob/master/configure.ac#L702 - 也许这是罪魁祸首。尝试将环境变量设置为可执行文件。 。 – deets

+0

导出VAR =值几乎是你所需要知道的。在这种情况下,它的出口PKG_CONFIG =/path/to/pkg-config – deets

回答

1

该项目的configure脚本似乎假设pkg-config的位置。幸运的是,你可以使用PKG_CONFIG环境变量覆盖它。

export PKG_CONFIG=/path/to/pkg-config 

然后./configure再次。

相关问题