我使用以下命令从源代码构建boost 1.66.0
。
第一
tools/build/
。bootstrap.sh
b2 install --prefix=PREFIX
,其中PREFIX
是您希望安装Boost.Build的目录PREFIX/bin
添加到PATH环境变量中。当我使用Eclipse c++ oxygen
IDE时,作为第4步,我放了路径
链接器/home/Hussain/boost_1_66_0/lib
Library Search Path (-L)
第二
./bootstrap.sh --prefix=/usr &&
./b2 stage threading=multi link=shared
然后
./b2 install threading=multi link=shared
并将路径/home/Hussain/boost_1_66_0/stage/lib
添加到与first
相同的链接器中。
当我编译时,代码编译器没有抱怨。但是当我运行exe
文件时,我收到了错误
error while loading shared libraries: libboost_serialization.so.1.66.0: cannot open shared object file: No such file or directory
有什么问题?
我使用boost1.65.1
使用path
的早期系统重复了相同的过程。