0

我正在尝试在 Ubuntu 13.04 x86_64 上从源代码构建 MongoDB C++ 驱动程序。当我运行时:

$ scons

一切都按预期构建。我还可以看到 mongoclient.a 已构建。但是,根据文档,一旦构建了所有内容,我需要执行“sudo scons install”,这似乎不起作用。我不是很精通scons,所以我无法确定问题所在。

$ sudo scons install
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) no
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.

$ 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) no
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.
4

0 回答 0