sigma.z.1980
sigma.z.1980

Reputation: 489

command 'gcc' failed with exit status 1 (installing psyco)

I run Ubuntu 11.10, gcc version 4.6.1.

I've been trying to install psyco, but keep getting this error:

PROCESSOR = 'i386'
running build
running build_py
running build_ext
building 'psyco._psyco' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DALL_STATIC=1 -Ic/i386 -I/usr/include/python2.7 -c c/psyco.c -o build/temp.linux-i686-2.7/c/psyco.o
In file included from c/initialize.h:55:0,
                 from c/psyco.c:14:
c/mergepoints.c:242:3: error: ‘JUMP_IF_FALSE’ undeclared here (not in a function)
c/mergepoints.c:242:3: error: ‘JUMP_IF_TRUE’ undeclared here (not in a function)
c/codegen.c:127:19: warning: ‘psyco_source_condition’ defined but not used [-Wunused-function]
c/codegen.c:747:10: warning: ‘integer_lshift’ defined but not used [-Wunused-function]
c/Objects/plistobject.c:115:10: warning: ‘PsycoList_SingletonNew’ defined but not used [-Wunused-function]
error: command 'gcc' failed with exit status 1

I've installed python-setuptools but nothing worked so far. Thanks for a ny suggestions.

Upvotes: 1

Views: 1057

Answers (2)

the fishman
the fishman

Reputation: 49

maybe you should get "https://github.com/develersrl/gccwinbinaries" install path :C:/mingw and Installation path :C:/mingw/bin .Finally, find distutils.cfg at the python installation directory D:/Python26/Lib/distutils

Upvotes: -1

modelnine
modelnine

Reputation: 1499

Google is your friend: psyco does not build and does not work with Python 2.7, as documented in the corresponding Ubuntu bug report.

Why do you require Psyco? If you need to optimize tight loops, possibly Cython can come to your rescue.

Upvotes: 3

Related Questions