2017-10-18 415 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再次。

相關問題