python - gevent install on x86_64 fails: "undefined symbol: evhttp_accept_socket" -


I am trying to install on a fresh EC2 CentOS 5.3 64-bit system.

Since libevent version available in yum was too old for another package (beanstock), since I have used the following command manually libevent-1.4.13-stable :

./configure - prefix = / usr & amp; Amp; Make & amp; Amp; Install

The output from installing this gadget is:

  [gevent-0.12.2] # python setup.py build --libevent / usr Libevent 1.4.13-lib using lib: libevent.so running running build_py running running build_ext /usr/src/gevent-0.12.2/build/lib.linux-x86_64-2.6/gevent/core So / usr / src add /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, & lt; Module & gt; Import from Gevent.wsgi to WSGIServer as a GeventServer file in "/usr/lib/python2.6/site-packages/gevent/__init__.py", line 32, & lt; Module & gt; Import reinit from gevent.core to: /usr/lib/python2.6/site-packages/gevent/core.so: undefined symbol: evhttp_accept_socket  

I have followed the exact steps On local virtualbox instances (32-bit) and I do not see any errors.

How do I fix this?

The easiest to determine was the clone, at wip-all branch Switch, and python setup.py build_libevent build install play hold & amp; Statically created libevent against the gateway:

  # git clone http://github.com/schmir/gevent.git # cd gevent # git branch -a * upstream original / head original / Closed-socket -Nanel-Event Basic / pywsgi-base-basehttpserver Basic / Upstream Basic / wip-all origin / wip-setup-config # git Checkout original / wip-all # python setup.py build_libevent build install  < / Pre> 

More info.


Comments