Building boost on linux

A valid gcc toolchain is required.

Build or obtain the bjam build tool e.g. using a package manager.


Download the boost sources ( and extract them into a folder e.g. /developer/src/boost in the following refered as $SOURCES. Copy the bjam build tool from /usr/bin/ into the $SOURCES folder.

Modify the configuration files as needed. For instance, the $SOURCES/ file to the following. Make sure you have write permissions to the lib folder.



Mark the $SOURCES/ and the $SOURCES/tools/build/v2/engine/ as executable.

chmod +x

Otherwise calling the leads to a “permission denied” error!

Execute … happy compiling – be patient
…failed updating 60 targets…
…skipped 12 targets…
…updated 875 targets…

After that, run ./bjam install. E.G. you can specify the adress model by using address-model=64 for 64 Bit.
…failed updating 60 targets…
…skipped 12 targets…
…updated 9731 targets…

About Jan Tschada

Software engineer from Germany
This entry was posted in Common and tagged , , . Bookmark the permalink.

One Response to Building boost on linux

  1. Pingback: How to install a custom boost version in CentOS? | Question and Answer

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s