我正在尝试在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)的最新代码,但没有运气。
我该如何解决这个问题?提前谢谢。
答案 0 :(得分:0)
目前不支持在Windows下使用Cygwin bash运行scons来构建MongoDB。解决方案是使用本机Visual Studio命令提示符。