美文网首页
安装boost

安装boost

作者: 砖头机的灵感 | 来源:发表于2017-04-17 11:03 被阅读0次

服务器的系统是redhat7.2,64位x86。

[root@xxx opt]# tar -xzvf boost_1_63_0.tar.gz
[root@xxx opt]# cd boost_1_63_0/
  • 3.运行bootstrap.sh,产生可执行程序bjam。
[root@wulab opt]# ./bootstrap.sh
  • 4.运行bjam编译。
[root@xxx opt]# ./bjam
  • 5.建立boost新目录。将编译产生的stage(库文件)和bin.v(目标文件)两个文件夹移动到boost新目录下。
[root@xxx opt]# mkdir /usr/share/boost_1_63_0
[root@xxx opt]# cp -r stage/ bin.v2/ /usr/share/boost_1_63_0/
  • 6.加入环境变量,souce生效。
[root@xxx opt]# vim /etc/profile
export BOOST_ROOT=/usr/share/boost_1_63_0
export BOOST_INCLUDE=/usr/share/boost_1_63_0
export BOOST_LIB=/usr/share/boost_1_63_0/stage/lib
>source /etc/profile
  • 7.建立软连接。
ln -s /usr/share/boost_1_43/boost/ /usr/include/boost 

至此,boost安装完毕!


  • some codes about my compiling
[root@xxx boost_1_63_0]# ./bjam
Performing configuration checks
    - 32-bit                   : no
    - 64-bit                   : yes
    - arm                      : no
    - mips1                    : no
    - power                    : no
    - sparc                    : no
    - x86                      : yes
Building the Boost C++ Libraries.
    - symlinks supported       : yes
    - C++11 mutex              : no
    - lockfree boost::atomic_flag : yes
    - Boost.Config Feature Check: cxx11_auto_declarations : no
    - Boost.Config Feature Check: cxx11_constexpr : no
    - Boost.Config Feature Check: cxx11_defaulted_functions : no
    - Boost.Config Feature Check: cxx11_final : yes
    - Boost.Config Feature Check: cxx11_hdr_mutex : no
    - Boost.Config Feature Check: cxx11_hdr_tuple : no
    - Boost.Config Feature Check: cxx11_lambdas : no
    - Boost.Config Feature Check: cxx11_noexcept : no
    - Boost.Config Feature Check: cxx11_nullptr : no
    - Boost.Config Feature Check: cxx11_rvalue_references : no
    - Boost.Config Feature Check: cxx11_template_aliases : no
    - Boost.Config Feature Check: cxx11_thread_local : no
    - Boost.Config Feature Check: cxx11_variadic_templates : yes
    - has_icu builds           : no
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - zlib                     : yes
    - bzip2                    : yes
    - iconv (libc)             : yes
    - icu                      : no
    - icu (lib64)              : no
    - native-atomic-int32-supported : yes
    - native-syslog-supported  : yes
    - pthread-supports-robust-mutexes : yes
    - compiler-supports-visibility : yes
    - compiler-supports-ssse3  : yes
    - compiler-supports-avx2   : yes
    - gcc visibility           : yes
    - long double support      : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
    - zlib                     : yes
    - bzip2                    : yes
Component configuration:
    - atomic                   : building
    - chrono                   : building
    - container                : building
    - context                  : building
    - coroutine                : building
    - coroutine2               : building
    - date_time                : building
    - exception                : building
    - fiber                    : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - locale                   : building
    - log                      : building
    - math                     : building
    - metaparse                : building
    - mpi                      : building
    - program_options          : building
    - python                   : building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals                  : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - type_erasure             : building
    - wave                     : building

yuwq
2017/4/17


相关文章

  • mac boost 安装

    源码编译安装: boost安装官网 下载Boost源码 解压放在任意目录,例如/usr/local/boost_1...

  • pIRS的安装和简单使用

    [TOC] 安装Boost C++ library 安装pIRS过程中遇到未安装Boost C++ library...

  • Mac安装boost

    boost安装 1.boost安装包下载https://sourceforge.net/projects/boos...

  • boost在ubuntu16,windows10的安装

    https://www.boost.org/ 下载boost文件 boost在Ubuntu下安装 tar xvzf...

  • Thrift centos7 安装

    安装centos需要的扩展 安装boost,本地源码安装最安全 笔者在安装boost的时候,使用的yum inst...

  • 安装EOS 4.2

    安装boost 网页下载boost最新包替换script/eosio_build_ubuntu.sh 中boost...

  • treemix 安装

    先安装两个依赖软件boost(v>1.42)和gsl boost安装 1.下载 解压 编译和安装 gsl安装 1....

  • Windows下编译和使用websocketpp

    编译安装Boost WebSocketpp依赖于Boost,因此在使用WebSocketpp前需要编译安装Boos...

  • boost库

    Linux下安装使用boost库 apt命令安装 这两个命令可以安装默认版本的boost库,如果想安装特定版本,需...

  • Mysql5.7 安装

    安装依赖 创建 Mysql 用户及组 下载 mysql-boost 安装包 解压 mysql-boost 创建数据...

网友评论

      本文标题:安装boost

      本文链接:https://www.haomeiwen.com/subject/vtftzttx.html