what is the default location for boost library when installed using macport on mac ?

99封情书 提交于 2019-12-03 11:23:54

问题


I just now installed boost on mac, using macport with following command

sudo port install boost

It's installed fine, but I have no idea where the boost library got installed to.
Where should it be / how could I search for it?


回答1:


The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib. Or in /opt/local/include/boost and /opt/local/lib, I believe.

You can search using locate:

locate boost



回答2:


Default is /usr/local/lib /usr/local/include

You might want to rebuild the libs using the clang toolchain

./bjam toolset=clang

and then do a manual install in a specific location especially if you want to switch between versions (for source control or testing etc)

> find . -name boost

also works




回答3:


Using the macOS Sierra 10.13.5, installed boost with brew. location in /usr/local/include/




回答4:


For me, with High Sierra and MacPorts 2.4.4, MacPorts installed Boost 1.66 under:

/opt/local/include/boost


来源:https://stackoverflow.com/questions/16127060/what-is-the-default-location-for-boost-library-when-installed-using-macport-on-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!