centos6.5安装boost

来源:互联网 发布:mac如何连接远程服务 编辑:程序博客网 时间:2024/06/06 04:31

安装好系统

跟新软件源

yum install -y gcc gdb strace gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs patch e2fsprogs-devel krb5-devel libidn libidn-devel openldap-devel nss_ldap openldap-clients openldap-servers libevent-devel libevent uuid-devel uuid mysql-devel

yum install gcc gcc-c++ bzip2 bzip2-devel bzip2-libs python-devel -y
<pre style="white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 1.6; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; padding: 0px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; color: rgb(51, 51, 51); border: none; background-color: rgb(245, 245, 245);"><code><span style="margin-top: 0px;"><strong>sudo</strong></span> yum -y groupinstall <span style="color: rgb(221, 17, 68);">"Development Tools"</span></code>

  1. ./bootstrap.sh --with-libraries=system,filesystem,log,thread  --with-toolset=gcc
  2. ./b2 install toolset=gcc cxxflags="-std=c++11" --prefix=/usr  type=complete

<span style="color: rgb(54, 46, 43); font-family: Arial; font-size: 14px; line-height: 26px;">./bjam "-sTOOLS=gcc" "--includedir=/usr/include" "--libdir=/usr/lib/boost" install</span>

0 0
原创粉丝点击