Ubuntu下编译Boost

  Ubuntu的版本是13.04,Boost是1.54。

    1.首先添加依赖项:sudo apt-get install python-dev gccxml libbz2-dev

    2.Boost使用的不是公认标准的make,而是专门为Boost开发的工具bjam,所以要编译Boost,首先要获得bjam程序,运行sudo ./bootstrap.sh

    3.最后一步编译Boost,运行sudo ./bjam

    编译完成会有这样的提示:   

The Boost C++ Libraries were successfully built!  The following directory should be added to compiler include paths:     

    /home/mogra/lib/boost_1_54_0 

The following directory should be added to linker library paths:     

    /home/mogra/lib/boost_1_54_0/stage/lib  mogra@mogra-T500:~/lib/boost_1_54_0$

你可能感兴趣的:(Ubuntu下编译Boost)