在配置caffe时需要用到boost库,如果需要编译python,则需要使用boost_python,需要分两步来装,首先编译c++的boost库,然后再根据python的版本和位置来编译安装libboost_python
安装boost:
cd temp
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz
tar -zxvf boost_1_67_0.tar.gz
cd boost_1_67_0 ./bootstrap.sh --prefix=/your_root_path/local
./b2 -j32
./b2 install
安装boost_python:
./bootstrap.sh --with-python=/usr/bin/python3 --with-python-version=3.5 --with-python-root=/usr/local/lib/python3.5 --prefix=/usr/local 这里要根据自己的python版本和地址来修改
./b2 install -a --with=all
安装完成,这样就不会在编译caffe时因为确实lboost_python而报错了