蟒蛇的BerkeleyDB訪問我安裝的Python 2.6在我的Mac(附帶的2.5,而我在工作的2.6要瘋了)一切都已經安裝上/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/
。現在我想安裝python BerkeleyDB模塊,但它在構建過程中出現語法錯誤:無法安裝在OSX
creating build/temp.macosx-10.3-fat-2.6/extsrc
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -DPYBSDDB_STANDALONE=1 -I~/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c extsrc/_bsddb.c -o build/temp.macosx-10.3-fat-2.6/extsrc/_bsddb.o
extsrc/_bsddb.c:232: error: syntax error before 'DB_ENV'
extsrc/_bsddb.c:232: warning: no semicolon at end of struct or union
extsrc/_bsddb.c:239: error: syntax error before '}' token
extsrc/_bsddb.c:239: warning: data definition has no type or storage class
extsrc/_bsddb.c:245: error: syntax error before 'DBEnvObject'
extsrc/_bsddb.c:245: warning: no semicolon at end of struct or union
extsrc/_bsddb.c:258: error: syntax error before '}' token
extsrc/_bsddb.c:258: warning: data definition has no type or storage class
<and so on>
extsrc/_bsddb.c:5915: error: 'DB_OLD_VERSION' undeclared (first use in this function)
extsrc/_bsddb.c:5916: error: 'DB_RUNRECOVERY' undeclared (first use in this function)
extsrc/_bsddb.c:5917: error: 'DB_VERIFY_BAD' undeclared (first use in this function)
lipo: can't figure out the architecture type of: /var/folders/Ye/YeXcn-oIE7ybm-TS4yB8c++++TQ/-Tmp-//cclJF2Xy.out
Google無法幫助。
你從配置腳本構建BerkelyDB? – 2009-08-20 02:41:08
我從configure中編譯了berkeleydb,就像下載的oracle一樣。 – 2009-08-20 02:45:59
對不起,我的意思是模塊。你用什麼參數來配置?我認爲你需要修改包含路徑,例如'--with-python = Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 /'。 – 2009-08-20 03:11:49