cd boost/tools/build/v2/engine

sudo sh build.sh gcc  OR sudo sh build.sh darwin

copy the two file created,(bjam&b2)into boost's root directory

cd boost

sudo bjam -a