miércoles, 17 de junio de 2015

Resolviendo un Error al querer instalar CARBON utilizando PIP


Aquí le dejo un error que se me presento al querer instalar "carbon" utilizando "pip".

PROBLEMA

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c twisted/runner/portmap.c -o build/temp.linux-x86_64-2.6/twisted/runner/portmap.o

twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory

twisted/runner/portmap.c:14: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

twisted/runner/portmap.c:31: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

twisted/runner/portmap.c:45: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âPortmapMethodsâ

twisted/runner/portmap.c: In function âinitportmapâ:

twisted/runner/portmap.c:55: warning: implicit declaration of function âPy_InitModuleâ

twisted/runner/portmap.c:55: error: âPortmapMethodsâ undeclared (first use in this function)

twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once

twisted/runner/portmap.c:55: error: for each function it appears in.)

error: command 'gcc' failed with exit status 1



CAUSA:

No tengo las bibliotecas y los archivos de cabecera necesarios para el desarrollo de Python, en poca palabra me faltan los fuentes de Python jejejejeje.

SOLUCIÓN:

Con Instalar el paquete "python-devel.x86_64" queda resuelto.

yum install python-devel.x86_64


NOTA:

Estos fueron los paquetes que se instalaron al ejecutar el yum anterior.

python-2.6.6-52.el6.x86_64.rpm
python-devel-2.6.6-52.el6.x86_64.rpm                                                                        
python-libs-2.6.6-52.el6.x86_64.rpm

Listo.

Si alguien lo resolvió de otra forma por favor dejar su comentario.

No hay comentarios:

Publicar un comentario