从官方网站下载最新版本的C ++ boost后,我以root权限运行:
./bootstrap.sh --prefix=/usr/local
和下一个./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
,因此库和头文件已安装到当前目录中,并且前缀被忽略。不带前缀运行(/ usr / local是默认值)会导致相同的结果。我做错了什么?