node ninja
node ninja

Reputation: 32986

How to install boost c++ libraries in OSX

I downloaded boostjam and put it in with the install files and tried to run it, the following error is displayed:

error: error: no Jamfile in current directory found, and no target references specified.

Upvotes: 7

Views: 17362

Answers (5)

user1823890
user1823890

Reputation: 744

In order to avoid troubles compiling third party libraries that need boost installed in your system, run this:

sudo port install boost +universal

Upvotes: 0

ManuelSchneid3r
ManuelSchneid3r

Reputation: 16091

The more modern package manager homebrew does this with a single

$ brew install boost

Upvotes: 20

dubnde
dubnde

Reputation: 4431

I found this link helpful. I ended up having to use the following command to ensure 64 bit support as well which I need

./bjam architecture=combined address-model=32_64

Upvotes: 0

Ferruccio
Ferruccio

Reputation: 100628

If you first install MacPorts, you can install Boost with a single command:

sudo port install boost

Upvotes: 4

Öö Tiib
Öö Tiib

Reputation: 10979

Did you download boost archive and unpack it? Why you downloaded bjam? What install files? Bootstrap can compile bjam on your computer. Short story howto install:

  1. Unpack the boost archive to desktop
  2. Navigate with terminal to boost directory (its something like /users/zbuffer/desktop/boost_1_46_1)
  3. type:
  4. ./bootstrap.sh
  5. pay attention to error messages
  6. if bootstrap may not execute and you need to allow it before:
  7. chmod +x bootstrap.sh
  8. if bootstrap worked type:
  9. ./bjam architecture=combined
  10. pay attention to error messages

If something is still wrong and you come back to ask here around then please write what exactly you did and at what step what happened.

Upvotes: 3

Related Questions