In a couple of situations, I'm getting errors reading from .so files. First, when compiling my code base with g++, I get the error:
/usr/lib/x86_64-linux-gnu/librt.so: could not read symbols: Invalid operation
Second, when trying to load a library we are developing in Python with a line like:
ctypes.cdll.LoadLibrary("libshm.so")
we get the error that:
OSError: libshm.so: cannot open shared object file: No such file or directory
However, both of these files can be found manually and we have even checked that the symbols are readable. These load well in Ubuntu 11.04 systems and in other systems running Arch Linux and Debian.
Any suggestions would be greatly appreciated.
locate libshm.so? Also, try running your compiler with-lrt? – Jacob Johan Edwards Jan 23 '12 at 2:31