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