我已经下载了最新的 MongoDB C++ 驱动程序http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-2.5.2.tgz。当我做'scons'时,它构建得很好。建设完成后,我得到以下信息:
ranlib build/libmongoclient.a
Install file: "build/libmongoclient.a" as "libmongoclient.a"
scons: done building targets.
它说它安装了 mongo,但我想将 lib 和头文件安装在适当的位置,例如 /usr/local。无论我尝试什么(scons 安装,带或不带 --prefix),它都不想将它安装在 /usr/local 中。事实上,它说安装目标是最新的:
$sudo scons install --prefix=/usr/local
scons: Reading SConscript files ...
Checking for C++ library boost_thread-mt... (cached) yes
Checking for C++ library boost_filesystem-mt... (cached) yes
Checking for C++ library boost_system-mt... (cached) yes
Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking whether backtrace_symbols_fd is declared... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.
我应该使用其他参数来安装它吗?对于库,我可以复制它,但是手动安装标题会更加乏味。