Saturday, February 19, 2011

How do you install Boost on MacOS?

How do you install Boost on MacOS? Right now I can't find bjam for the Mac.

update: Thanks for the MacPorts answer, and special thanks to hasseg's comment for the link

http://www.macports.org/

I'm still new to my Mac, but with ports it seems like we'll get going along much better.

From stackoverflow
  • sudo port install boost

    hasseg : This is what dies is referring to: http://www.macports.org/
    malat : Thanks you save me a lot of time !
  • you can download bjam for OSX (or any other OS) here

  • If you haven't already read it, you should look at the getting started guide for unix variants.

    If you want to build it manually, go to tools/jam in the boost distribution and run build_dist.sh.

  • Fink appears to have a full set of Boost packages...

    With fink installed and running just do

    fink install boost1.35.nopython
    

    at the terminal and accept the dependencies it insists on. Or use

    fink list boost
    

    to get a list of different packages that are availible.

  • Unless your compiler is different than the one supplied with the Mac XCode Dev tools, just follow the instructions in section 5.1 of Getting Started Guide for Unix Variants. The configuration and building of the latest source couldn't be easier, and it took all about about 1 minute to configure and 10 minutes to compile.

0 comments:

Post a Comment