Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

linux离线安装boost

默认安装方式

  1. https://www.boost.org,官网下载 ***.tar.gz 离线安装包
  2. sh ./bootstrap.sh
  3. 安装 ./b2 install

指定安装目录方式

  1. https://www.boost.org,官网下载 ***.tar.gz 离线安装包
  2. sh ./bootstrap.sh --prefix=路径
  3. 安装 ./b2 install

如果在运行还是找不到boost,添加环境变量

export CPLUS_INCLUDE_PATH=Your_Path/include:$CPLUS_INCLUDE_PATH
export LIBRARY_PATH=Your_Path/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=Your_Path/lib:$LD_LIBRARY_PATH

安装结果测试:gcc ***

#include <boost//thread/thread.hpp>
using namespace std;
posted @ 2022-11-24 15:20  365/24/60  阅读(308)  评论(0编辑  收藏  举报