2013-05-30 93 views
0

我想在Ubuntu Linux上pypy安裝pyicu,但該命令返回以下錯誤:安裝PyICU下pypy

cc -O2 -fPIC -Wimplicit -I/opt/pypy-2.0.2/include -c format.cpp -o build/temp.linux- 
x86_64-2.7/format.o -DPYICU_VER="1.5" 
cc1plus: attention : command line option ‘-Wimplicit’ is valid for C/ObjC but not for 
C++[enabled by default] 
format.cpp: In function ‘int t_fieldposition_init(t_fieldposition*, PyObject*, 
PyObject*)’: 
format.cpp:342:14: erreur: ‘struct PyTupleObject’ has no member named ‘ob_item’ 
error: command 'cc' failed with exit status 1 

是那個包是不是pypy如果是的話我怎麼可以安裝兼容嗎?

回答

0

這是「cpyext」,PyPy的C擴展模塊兼容層。它不能很好地模擬CPython結構,以便C擴展模塊可以直接訪問它們中的私有內容。在這種情況下,結構PyTupleObject中的ob_item字段。這意味着PyICU不能在PyPy上工作。

如何幫助改變情況:修復PyICU僅使用官方界面。