在 ubuntu 中 安装 eurasia 出现如下错误

11 views
Skip to first unread message

sam

unread,
Mar 30, 2011, 4:42:06 AM3/30/11
to eurasia-users
错误信息:如下
src/pyev.c:1136: error: ‘_Watcher’ has no member named ‘watcher’
src/pyev.c: At top level:
src/pyev.c:1142: error: expected declaration specifiers or ‘...’
before ‘PyObject’
src/pyev.c:1142: error: expected declaration specifiers or ‘...’
before ‘PyObject’
src/pyev.c: In function ‘_Watcher_init’:
src/pyev.c:1145: error: ‘PyObject’ undeclared (first use in this
function)
src/pyev.c:1145: error: ‘tmp’ undeclared (first use in this function)
src/pyev.c:1152: warning: implicit declaration of function
‘PyObject_TypeCheck’
src/pyev.c:1152: error: ‘LoopType’ undeclared (first use in this
function)
src/pyev.c:1153: error: ‘PyExc_TypeError’ undeclared (first use in
this function)
src/pyev.c:

本人 用的 ubuntu1004 desktop i386
gcc是 gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

python 版本是 2.6.5

请问 这个安装还需要 不知道 该如何解决?

Wilhelm Shen

unread,
Mar 30, 2011, 7:08:03 AM3/30/11
to eurasi...@googlegroups.com
可能是少了 python2.6-dev 这个包,执行:

sudo apt-get install python2.6-dev

然后再重新安装。eurasia 可以安装到指定目录:

/usr/bin/python2.6 setup.py install /PATH/TO/用户指定目录

Reply all
Reply to author
Forward
0 new messages