2013-11-27 65 views
1

我想在Cygwin上构建MongoDB客户端库。在Cygwin中构建MongoDB C++驱动程序:generate_error_codes.py找不到

[email protected] /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. 

[email protected] /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驱动程序的问题:

他们没有得到错误:

No special config for [cygwin] which probably means it won't work

我试过mongodb-src-r2.4.8和github的最新代码(https://github.com/mongodb/mongo),没有运气。

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

+0

我不确定如果我们支持cygwin作为构建平台,我会进行调查。 – Derick

+0

目前,我建议构建整个项目并将其作为其中的一部分构建。 –

+0

@Derick我很期待那个...亲自 – figroc

回答

0

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

+0

我的工作电脑是Windows。其他依赖于MongoDB Driver的组件需要在Cygwin上构建。从Visual Studio构建的MongoDB C++驱动程序是否工作? (无论如何,我会试试看......) – figroc

相关问题