Just follow the instruction at:

https://sourceforge.net/u/mbradle/blog/2016/05/using-the-boost-compiled-libraries/

cd boost

./bootstrap.sh

./b2

Add the following line to the .bashrc

export BOOST_DIR=/home/phong/boost
export BOOST_LIB_DIR=/home/phong/boost/stage/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/phong/boost/stage/lib

If you encounter an error like: "boost::format"... Just ignore it by uncomment the corresponding code