无法按安装前缀安装Boost 从官方网站下载C++ Boost最新版本后,我用root权限运行: /bootstrap.sh--prefix=/usr/local和next/b2--prefix=/usr/local(根据教程)。但当它建成时,我看到了这样的信息: The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: /home/username/Downloads/boost_1_65_0 The following directory should be added to linker library paths: /home/username/Downloads/boost_1_65_0/stage/lib

无法按安装前缀安装Boost 从官方网站下载C++ Boost最新版本后,我用root权限运行: /bootstrap.sh--prefix=/usr/local和next/b2--prefix=/usr/local(根据教程)。但当它建成时,我看到了这样的信息: The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: /home/username/Downloads/boost_1_65_0 The following directory should be added to linker library paths: /home/username/Downloads/boost_1_65_0/stage/lib,c++,boost,C++,Boost,,所以库和头被安装到当前目录中,而前缀被忽略。不使用前缀(/usr/local是默认值)运行会导致相同的结果。我做错了什么?/b2安装--prefix=prefix@perencia我的疏忽:(它工作了,谢谢/b2安装--prefix=prefix@perencia我的疏忽:(它工作了,谢谢

,所以库和头被安装到当前目录中,而前缀被忽略。不使用前缀(/usr/local是默认值)运行会导致相同的结果。我做错了什么?

/b2安装--prefix=prefix@perencia我的疏忽:(它工作了,谢谢
/b2安装--prefix=prefix
@perencia我的疏忽:(它工作了,谢谢