sudo apt-get install libbz2-dev
sudo apt-get install libicu-dev
sudo apt-get install mpi-default-dev
sudo apt-get install python-dev
download boost 1.47_0 as follows from web site
tar -jxvf ./boost_1_47_0.tar.bz2
cd ./boost_1_47_0
./bootstrap.sh ./bjam
Get boost log source codes
svn co https://boost-log.svn.sourceforge.net/svnroot/boost-log boost-log
cp -r /usr/src/boost-log/trunk/boost-log/boost/log/ /usr/local/src/boost_1_47_0/boost/
cp -r /usr/src/boost-log/trunk/boost-log/libs/log /usr/local/src/boost_1_47_0/libs/
./bootstrap.sh --show-libraries — this will list all the libraries that will be built and installed. You should see log listed as part of it.
./bootstrap.sh --with-libraries=all --prefix=/usr--includedir=/usr/local/include --libdir=/usr/local/lib
sudo ./bjam install
在ubuntu下编译成功
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/src/boost_1_47_0
The following directory should be added to linker library paths:
/usr/src/boost_1_47_0/stage/lib
sudo cp ./stage/lib/libboost_* /usr/lib
sudo cp /usr/src/boost_1_47_0 /usr/include
sudo apt-get install libicu-dev
sudo apt-get install mpi-default-dev
sudo apt-get install python-dev
download boost 1.47_0 as follows from web site
tar -jxvf ./boost_1_47_0.tar.bz2
cd ./boost_1_47_0
./bootstrap.sh ./bjam
Get boost log source codes
svn co https://boost-log.svn.sourceforge.net/svnroot/boost-log boost-log
cp -r /usr/src/boost-log/trunk/boost-log/boost/log/ /usr/local/src/boost_1_47_0/boost/
cp -r /usr/src/boost-log/trunk/boost-log/libs/log /usr/local/src/boost_1_47_0/libs/
./bootstrap.sh --show-libraries — this will list all the libraries that will be built and installed. You should see log listed as part of it.
./bootstrap.sh --with-libraries=all --prefix=/usr--includedir=/usr/local/include --libdir=/usr/local/lib
sudo ./bjam install
在ubuntu下编译成功
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/src/boost_1_47_0
The following directory should be added to linker library paths:
/usr/src/boost_1_47_0/stage/lib
sudo cp ./stage/lib/libboost_* /usr/lib
sudo cp /usr/src/boost_1_47_0 /usr/include