Oserror:libev.so.4:cannot open Shared object file:no such file or directory

Source: Internet
Author: User

Ubuntu12.04 using the Pyev module, but running sudo python setup.py install prompts for the following error:

Traceback (most recent):
File "setup.py", line-in <module>
Check_version (Libev_version (), min_libev_version, "Libev")
File "setup.py", line #, in Libev_version
Libev_dll = Cdll. LoadLibrary (Libev_dll_name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
return Self._dlltype (name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
Self._handle = _dlopen (self._name, mode)
Oserror:libev.so.4:cannot open Shared object file:no such file or directory


find_library () tries to run external programs (/sbin/ldconfig , GCC , and objdump ) To find the library file. Itreturns the filename of the "library file", where the default search path for Ldconfig is selected, and the Ldconfig default search path is/usr,/usr/lib, and/etc/ The path listed in ld.so.conf, so it should be to add/usr/local/lib this path directly to the new line of/etc/ld.so.conf, and then sudo ldconfig make it effective, This ensures that the cTYPES related method can find the correct search path for the shared library. Then sudo python setup.py install will be successful.


Oserror:libev.so.4:cannot open Shared object file:no such file or directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.