我正在尝试从源代码构建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.