2013-11-27 4 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

: 그들은 오류가 발생하지 않았다

가 0

mongodb-src-r2.4.8과 github (https://github.com/mongodb/mongo)의 최신 코드를 사용해 보았습니다.

문제를 어떻게 해결해야합니까? 미리 감사드립니다.

+0

cygwin을 빌드 된 플랫폼으로 지원하는지 잘 모르겠습니다. 조사하겠습니다. – Derick

+0

현재, 전체 프로젝트를 구축하고 mongoclient를 빌드하는 것이 좋습니다. –

+0

@Derick 그 사람을 고대하고 있습니다 ... 개인적으로 – figroc

답변

0

Windows에서 Cygwin bash에서 MongoDB를 빌드하기 위해 scons를 실행하는 것은 현재 지원되지 않습니다. 솔루션은 기본 Visual Studio 명령 프롬프트를 사용하는 것입니다.

+0

내 작업 PC는 Windows입니다. MongoDB 드라이버에 의존하는 다른 구성 요소는 Cygwin에서 빌드해야합니다. Visual Studio에서 빌드 된 MongoDB C++ 드라이버가 작동합니까? (나는 그것을 어떻게해서든지 시험해 볼 것이다. ..) – figroc