Dealing with upgrade of libevent on Amazon AWS

Posted by Dreen on Server Fault See other posts from Server Fault or by Dreen
Published on 2012-10-23T22:00:08Z Indexed on 2012/10/23 23:02 UTC
Read the original article Hit count: 198

I am building an application (in Python) on Amazon EC2 that has a following dependency chain:

gevent-websocket ---> gevent ---> libevent

The last one (libevent) got upgraded on Sunday and my server is now generating this error:

(...)
  File "/usr/lib/python2.6/site-packages/gevent-0.13.7-py2.6-linux-x86_64.egg/gevent/__init__.py", line 41, in <module>
    from gevent import core
ImportError: libevent-1.4.so.2: cannot open shared object file: No such file or directory

Not wanting to spend much time on the issue, I tried to mitigate it by creating a symlink to an always-recent version:

$ sudo ln -s /usr/lib64/libevent.so /usr/lib64/libevent-1.4.so.2

But it didn't quite work:

(...)
  File "/usr/lib/python2.6/site-packages/gevent-0.13.7-py2.6-linux-x86_64.egg/gevent/__init__.py", line 41, in <module>
    from gevent import core
ImportError: /usr/lib/python2.6/site-packages/gevent-0.13.7-py2.6-linux-x86_64.egg/gevent/core.so: undefined symbol: current_base

I am a bit stumped as to how to proceed. Should I create more symlinks? To what? Or is there a better way to solve this problem...

PS. For the record I am using Amazon AMI.

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about python