1

我正在尝试在 Cygwin 上构建 MongoDB 客户端库。

Administrator@dev /cygdrive/e/warez/dev-tools/cpp/mongodb-src-r2.4.8
$ scons mongoclient
scons: Reading SConscript files ...
scons version: 2.3.0
python version: 2 7 5 'final' 0
No special config for [cygwin] which probably means it won't work
Checking whether the C++ compiler works(cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) yes
Checking for C library rt... (cached) yes
Checking for C++ header file execinfo.h... (cached) no
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build/cygwin/normal/mongo/base/error_codes.h] Source `src/mongo/base/generate_error_codes.py' not found, needed by target `build/cygwin/normal/mongo/base/error_codes.h'.
scons: building terminated because of errors.

Administrator@dev /cygdrive/e/warez/dev-tools/cpp/mongodb-src-r2.4.8
$ ls -l src/mongo/base/generate_error_codes.py
-rwx------+ 1 Administrators None 8736 Oct 31 22:15 src/mongo/base/generate_error_codes.py

构建MongoDB驱动有两个问题:

他们没有得到错误:

[cygwin] 没有特殊配置,这可能意味着它不起作用

我已经尝试了 mongodb-src-r2.4.8 和来自 github(https://github.com/mongodb/mongo)的最新代码,但没有运气。

我应该如何解决这个问题?提前致谢。

4

1 回答 1

0

目前不支持在 Windows 上的 Cygwin bash 下运行 scons 来构建 MongoDB。解决方案是使用本机 Visual Studio 命令提示符。

于 2013-11-27T14:34:29.847 回答