abakan/ProDy — Issue #85: error: command 'gcc' failed with exit status 1
Author: gchen402
Created: 2012-02-02 16:25:45+00:00
State: open

After unpackaging ProDy-0.9.3.tar.gz, I run the python setup.py build command and get the error message below. What should I do to install Prody?

% python setup.py build
running build
running build_py
running build_ext
building 'prody.cpairwise2' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iprody -I/usr/include/python2.6 -c prody/cpairwise2.c -o build/temp.linux-i686-2.6/prody/cpairwise2.o
prody/cpairwise2.c:12:20: error: Python.h: No such file or directory
prody/cpairwise2.c:22: error: expected ')' before '*' token
prody/cpairwise2.c: In function 'IndexList_init':
prody/cpairwise2.c:60: warning: implicit declaration of function 'memset'
prody/cpairwise2.c:60: warning: incompatible implicit declaration of built-in function 'memset'
prody/cpairwise2.c: In function 'IndexList_free':
prody/cpairwise2.c:66: warning: implicit declaration of function 'free'
prody/cpairwise2.c:66: warning: incompatible implicit declaration of built-in function 'free'
prody/cpairwise2.c: In function 'IndexList__verify_free_index':
prody/cpairwise2.c:106: warning: implicit declaration of function 'realloc'
prody/cpairwise2.c:106: warning: incompatible implicit declaration of built-in function 'realloc'
prody/cpairwise2.c:107: warning: implicit declaration of function 'PyErr_SetString'
prody/cpairwise2.c:107: error: 'PyExc_MemoryError' undeclared (first use in this function)
prody/cpairwise2.c:107: error: (Each undeclared identifier is reported only once
prody/cpairwise2.c:107: error: for each function it appears in.)
prody/cpairwise2.c: At top level:
prody/cpairwise2.c:158: error: expected ')' before '*' token
prody/cpairwise2.c:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
prody/cpairwise2.c:540: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
prody/cpairwise2.c:558: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpairwise2Methods'
prody/cpairwise2.c: In function 'initcpairwise2':
prody/cpairwise2.c:572: warning: implicit declaration of function 'Py_InitModule3'
prody/cpairwise2.c:572: error: 'cpairwise2Methods' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1