我已经阅读了几篇关于此的文章。
但是他们并没有从我这里解决。
请查看信息
brew install pkg-config
Run Code Online (Sandbox Code Playgroud)
然后完成安装
Rangers-iMac:dash ranger$ which pkg-config
/usr/local/bin/pkg-config
Run Code Online (Sandbox Code Playgroud)
这意味着已安装pkg-config。
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.
Run Code Online (Sandbox Code Playgroud)
这意味着configure找不到pkg-config。
我认为问题出在PATH,但我不知道该如何解决。
项目的 configure-script 似乎对 pkg-config 的位置做出了假设。幸运的是,您可以使用 PKG_CONFIG 环境变量覆盖它。
export PKG_CONFIG=/path/to/pkg-config
Run Code Online (Sandbox Code Playgroud)
然后./configure再说。