GEvent instalar en x86_64 falla: “símbolo no definido: evhttp_accept_socket”
Pregunta
Estoy tratando de instalar GEvent fresca en un CentOS 5.3 EC2 64 bits sistema.
Desde la versión disponible en libevent ñam era demasiado viejo para otro paquete (beanstalkd) Me libevent-1.4.13-stable
compilado / instalado manualmente utilizando el siguiente comando:
./configure --prefix=/usr && make && make install
Esta es la salida de la instalación de GEvent:
[gevent-0.12.2]# python setup.py build --libevent /usr/lib
Using libevent 1.4.13-stable: libevent.so
running build
running build_py
running build_ext
Linking /usr/src/gevent-0.12.2/build/lib.linux-x86_64-2.6/gevent/core.so to
/usr/src/gevent-0.12.2/gevent/core.so
[gevent-0.12.2]# cd /path/to/my/project
[project]# python myscript.py
Traceback (most recent call last):
File "myscript.py", line 9, in <module>
from gevent.wsgi import WSGIServer as GeventServer
File "/usr/lib/python2.6/site-packages/gevent/__init__.py", line 32, in <module>
from gevent.core import reinit
ImportError: /usr/lib/python2.6/site-packages/gevent/core.so: undefined symbol: evhttp_accept_socket
He seguido exactamente los mismos pasos en una instancia local de VirtualBox (32 bits) y no aparece ningún error.
¿Cómo puedo solucionar este problema?
Solución
solución más sencilla era clonar el repositorio git , cambie a la rama wip-all
y python setup.py build_libevent build install
plazo, que en juego y construye libevent estáticamente contra GEvent:
# git clone http://github.com/schmir/gevent.git
# cd gevent
# git branch -a
* upstream
origin/HEAD
origin/close-socket-cancel-event
origin/pywsgi-without-basehttpserver
origin/upstream
origin/wip-all
origin/wip-setup-config
# git checkout origin/wip-all
# python setup.py build_libevent build install
Más información aquí .
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow