Installing boost 1.38

From NEOSYS Dev Wiki
Jump to navigationJump to search

Download and unpack Boost Source

wget http://downloads.sourceforge.net/boost/boost_1_38_0.tar.bz2
tar xvf boost_1_38_0.tar.bz2
cd boost_1_38_0
./configure --help
./configure --with-libraries=date_time,filesystem,iostreams,program_options,regex,system,thread

Speed up the build of Boost by only doing the libraries and versions required. ADD additional config to the BJAM_CONFIG line as follows:

nano Makefile
BJAM_CONFIG= xxxxxxxxxxxxx -j4 variant=release link=shared

Build and install Boost

make
sudo make install

Centos - Add "/usr/local/lib" to the list of lib directories to ensure that the boost libs can be found.

sudo nano /etc/ld.so.conf

Ensure the new boost libraries are registered for use.

sudo /sbin/ldconfig

Ensure boost includes can be found. This step might be eliminated in a better Exodos installer.

sudo ln -s /usr/local/include/boost-1_38/boost /usr/local/include/boost