我試圖建立thrift爲了與Cassandra納入,因此,在設置節儉模塊時,我跑了誤差蟒蛇
setup.py
它放這個消息在命令行
running build
running build_py
running build_ext
building 'thrift.protocol.fastbinary' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python26\include -IC:\Pytho
n26\PC -c src/protocol/fastbinary.c -o build\temp.win32-2.6\Release\src\protocol
\fastbinary.o
src/protocol/fastbinary.c:24:24: netinet/in.h: No such file or directory
src/protocol/fastbinary.c:85:4: #error "Cannot determine endianness"
src/protocol/fastbinary.c: In function `writeI16':
src/protocol/fastbinary.c:295: warning: implicit declaration of function `htons'
src/protocol/fastbinary.c: In function `writeI32':
src/protocol/fastbinary.c:300: warning: implicit declaration of function `htonl'
src/protocol/fastbinary.c: In function `readI16':
src/protocol/fastbinary.c:688: warning: implicit declaration of function `ntohs'
src/protocol/fastbinary.c: In function `readI32':
src/protocol/fastbinary.c:696: warning: implicit declaration of function `ntohl'
error: command 'gcc' failed with exit status 1
需要一些幫助在這個問題上。我已經安裝了MigW32
謝謝。
在我看來,編譯器缺少一些包含它所需的東西(例如「netinet/in.h」)......在Windows中嘗試編譯加載項和模塊等時出現一個常見問題。您可能需要確保GCC可以找到「C:\ Python26 \ include」中的所有文件以及Thrift和Cassandra所需的任何其他庫... – ewall 2010-03-05 17:10:01
仍然收到相同的錯誤,我遵循這裏描述的方法http://code.google.com/p/rdflib/issues/detail?id=104這就是我迄今爲止得到的結果。現在無法解決這個問題。 – Switch 2010-03-06 03:18:02