centos 下 boost1.55 编译和安装
2015-06-02 10:03
591 查看
解压
tar zxvf ./boost_1_55_0.tar.bz2
进入目录后,执行
./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc
./b2 toolset=gcc cxxflags="-std=c++11"
备注:上面红色字体的你容,可以再配置后,看到其他的选项。上面绿色字体内容代表使用c++11标准,编译的库要使用统一标准。不使用,去掉绿色字体内容。
稍等一会,编译成功。安装吧。
./b2 install --prefix=/usr
运行./b2 install 命令,默认安装在
/usr/local/lib目录下
头文件在
/usr/local/include/boost目录下
install 后面可以加参数--prefix=/usr
Component configuration:
- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : not building
- exception : not building
- filesystem : building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : building
- math : not building
- mpi : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : building
- test : not building
- thread : building
- timer : not building
- wave : not building
tar zxvf ./boost_1_55_0.tar.bz2
进入目录后,执行
./bootstrap.sh --with-libraries=system,filesystem,log,thread --with-toolset=gcc
./b2 toolset=gcc cxxflags="-std=c++11"
备注:上面红色字体的你容,可以再配置后,看到其他的选项。上面绿色字体内容代表使用c++11标准,编译的库要使用统一标准。不使用,去掉绿色字体内容。
稍等一会,编译成功。安装吧。
./b2 install --prefix=/usr
运行./b2 install 命令,默认安装在
/usr/local/lib目录下
头文件在
/usr/local/include/boost目录下
install 后面可以加参数--prefix=/usr
Component configuration:
- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : not building
- exception : not building
- filesystem : building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : building
- math : not building
- mpi : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : building
- test : not building
- thread : building
- timer : not building
- wave : not building
相关文章推荐
- Linux环境下段错误的产生原因及调试方法小结
- GIT在Linux上的安装和使用简介
- ***Linux下使用git命令及github项目
- EM9280 Linux SPI 驱动简介
- 回收站功能在 Linux 中的实现
- CentOS6.4 安装配置iptables
- linux ps 命令使用
- linux 访问远程务器代码
- Linux route命令详解:查看和操作IP路由表
- CENTOS 7 下安装mysql
- Linux 下编译Android-VLC开源播放器详解(附源码下载)
- 7.centos权限设置命令
- Linux 内核版本规律
- Linux添加/删除用户和用户组
- gdb调试
- Linux Command - vmstat
- Linux工具篇之——watch命令
- Linux strace命令
- linux下代替system的基于管道的popen和pclose函数
- CentOS 启动提示unexpected inconsistency;RUN fsck MANUALLY