This is a brain dump of the method followed by me to install Boost.Log. Didn’t try installing Boost.Log along with Boost libraries installed from package manager. One important note before you build and install boost libraries: Make sure you have installed a threading library like pthreads. Most package managers should have them.
Now lets get on to the build steps:
- If you have installed Boost already from source, then its fine continue to next step. Otherwise download it from here (this link is for latest version as of this writing: v1.45). Extract the boost libraries at say:
/opt. We can build the libraries along with
- Download Boost.Log from Sourceforge.
- Extract the Boost.Log source archive in a folder – say
- Copy the
/opt/boost-log-1.0/boostto your boost source directory
/opt/Boost_1_45_0/boost(assuming that you have extracted it in
- Copy the
/opt/boost-log-1.0/libsto your boost
/opt/Boost_1_45_0/libs(assuming that you have extracted it in
- If you haven’t installed other Boost libraries, then follow these steps:
.bootstrap.sh --show-libraries— this will list all the libraries that will be built and installed. You should see
loglisted as part of it.
.bootstrap.sh --with-libraries=all --prefix=/usr/local --includedir=/usr/local/include --libdir=/usr/local/lib
Finally make sure
/usr/local/lib (the path specified in
bjam to install the built libraries) as part of it. If it is not edit your
~/.bashrc and add the following: