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

前端 未结 4 804
一生所求
一生所求 2021-02-05 06:37

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

相关标签:
4条回答
  • 2021-02-05 06:53

    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
    
    0 讨论(0)
  • 2021-02-05 07:02

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

    /opt/local/include/boost
    
    0 讨论(0)
  • 2021-02-05 07:10

    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

    0 讨论(0)
  • 2021-02-05 07:14

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

    0 讨论(0)
提交回复
热议问题