- 推薦一個linux指令學習網(wǎng)站
http://man.linuxde.net/ - 首先在sourceforge下載對應(yīng)版本的boost
https://sourceforge.net/projects/boost/files/boost/1.63.0/ - 執(zhí)行操作
tar xvf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh
sudo ./b2 install
- 編譯完boost庫之后导街,手動創(chuàng)建boost庫安裝路徑
$ sudo mkdir /usr/local/boost
$ mkdir /usr/local/boost/include
$ mkdir /usr/local/boost/lib64
$ cp -rf boost /usr/local/boost/include
$ cp -rf stage/lib/* /usr/local/boost/lib64
- 在ld.so.conf中添加boost庫的路徑
$ vim /etc/ld.so.conf
/usr/local/boost/lib64/
執(zhí)行l(wèi)dconfig命令
$ ldconfig