Hola a todos,
tengo un problema con la instalacion de PIL con python, les cuento:
Estaba ocupando un servidor ubuntu 10.04 para desarrollar con plone 3.3.5,
el asunto es que todo va bien, pero cuando paso a produccion con un Debian
lenny, trato de instalar todo el entorno de Plone primero instalando los
siguientes paquetes
en el sistema operativo

aptitude install python2.4 python2.4-dev
aptitude install gcc g++ libbz2-dev zlib1g-dev libreadline5-dev libssl-dev
libjpeg-dev
aptitude install python2.4-setuptools

despues ejecute en la linea de comando

$ easy_install-2.4 virtualenv
$virtualenv --no-site-packages -p python2.4 myEnv
$source myEnv/bin/activate
(myEnv)$ easy_install ZopeSkel

despues creo un plone3 buildout con la version 3.3.5 de plone, agrego el PIL
en buildout
(myEnv)$python bootstrap.py
(myEnv)$bin/buildout

y me envia el siguiente error:

/usr/bin/gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ
-I/usr/include/freetype2 -IlibImaging -I/usr/local/Plone/Python-2.4/include
-I/usr/local/include -I/usr/include
-I/usr/local/Plone/Python-2.4/include/python2.4 -c libImaging/JpegDecode.c
-o build/temp.linux-x86_64-2.4/libImaging/JpegDecode.o
libImaging/JpegDecode.c:45: error: expected identifier or ‘(’ before ‘void’
libImaging/JpegDecode.c:51: error: expected identifier or ‘(’ before
‘boolean’
libImaging/JpegDecode.c:58: error: expected identifier or ‘(’ before ‘void’
libImaging/JpegDecode.c:78: error: expected identifier or ‘(’ before ‘void’
libImaging/JpegDecode.c:99: error: expected identifier or ‘(’ before ‘void’
libImaging/JpegDecode.c:107: error: expected identifier or ‘(’ before ‘void’
libImaging/JpegDecode.c: In function ‘ImagingJpegDecode’:
libImaging/JpegDecode.c:134: error: ‘error’ undeclared (first use in this
function)
libImaging/JpegDecode.c:134: error: (Each undeclared identifier is reported
only once
libImaging/JpegDecode.c:134: error: for each function it appears in.)
libImaging/JpegDecode.c:135: error: ‘output’ undeclared (first use in this
function)
libImaging/JpegDecode.c:137: warning: implicit declaration of function
‘jpeg_buffer_src’
libImaging/JpegDecode.c:149: warning: implicit declaration of function
‘skip_input_data’
error: command '/usr/bin/gcc' failed with exit status 1

despues prove instalando mas paquetes que fue lo que encontre en muchos
foros:

aptitude install zlib1g-dbg
aptitude install zlibc
aptitude install g++
aptitude install libjpeg-dbg

tambien por ultimo prove con el instalador unificado y me manda el mismo
error, intente descargando
el imaging e instalarlo manualmente pero lo mismo, me fui al codigo de
JpegDecode.c en las lineas indicadas
y mire que es una llamada al metodo METHODDEF, el cual no lo enconter
definido en las librerias del imaging (no se por que)
comentarie esto (ya estaba desesperado!!) luego volvi a compilar, pero
tampoc, prove tambien dandole export CFLAGS='-fPIC' y nada.....

como ven ya estoy totalmente desesperado :( y no se que hacer!!!!!!

ayuda please ya he pasado mucho tiempo y creo que mis fuerzas se estan
agotando......
gracias desde ya por toda su valiosa ayuda

saludes, edgar aviles
_______________________________________________
Plone-ConoSur mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-conosur

Responder a