centos x64系统下的boost编译和使用

1. download boost sourcecode 1.53.0  (wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz/download)


2.install bzip2-devel
 2.1 sudo yum whatprovides */bzlib.h
 2.2 sudo yum install bzip2-devel-1.0.5-7.el6_0.x86_64
 
3. compile bjam
./bootstrap.sh --prefix=/home/alex/boost




4. 
./bjam  install (you will get some compile errors , that are python-dev problems, dismiss them.)


5. edit /etc/ld.so.conf 
add /home/alex/boost/lib at the end of ld.so.conf, then run ldconfig




6. when compile projects using boost, add the path /home/alex/boost/include and /home/alex/boost/lib</span>

你可能感兴趣的:(centos x64系统下的boost编译和使用)