Installing Boost

From AlephWiki

Jump to: navigation, search

Mac OS X: (instructions by Woody Zenfell III)

Boost's Web site (http://www.boost.org/) has a Getting Started guide linked from near the top of the little panel at the left. I pretty much just followed the instructions there for my Mac OS X machine; here I'll state more specifically what I did, since it'll be far more concise than the actual Boost guide. Obviously, if you're installing on a different kind of machine, you'll have to vary some parts of the process. (caveat: I am somewhat UNIX-capable but not a hardcore UNIXite. Some of my actions may horrify hardcore UNIX folks. I don't know.)

1)  I downloaded the Boost source from the link in Getting Started's Step 1.
2)  I unpacked it.
3)  I "downloaded a prebuilt executable" of Boost.Jam (bjam) from the link in Getting Started's Step 2.
4)  I unpacked it.
5)  I cd'd into the Boost source directory ('cd boost_1_32_0').
6)  I issued 'sudo ../boost-jam-3.1.10-1-macosxppc/bjam -sTOOLS=darwin --with-function install'.
     Note that I actually also use 'bind', so I guess you probably should include --with-bind in there
     as well to be sure.  But since both are just header libraries, this seemed to suffice.  (I never
     explicitly installed 'bind'.)  Oh and of course ../boost-jam-* was a path to wherever I
     unpacked Boost.Jam to.
7)  I made a soft link in the includes directory:
     'cd /usr/local/include' then 'sudo ln -s boost-1_32/boost .' 
     (yes, there is a lone '.' at the end there.)  I believed this was necessary for things like
     #include <boost/bind.hpp> to work, though I guess I may misunderstand UNIX-style
     header inclusion logic.

Other Platforms: (feel free to fill-in instructions)

Personal tools