Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
Could you edit your question to include locate libshm.so? Also, try running your compiler with -lrt? – Jacob Johan Edwards Jan 23 '12 at 2:31
This question appears to be abandoned and unanswered, could you perhaps edit and add more detail to your question? If this question no longer applies then you can either delete it or answer it yourself if you've solved the problem. Thanks! – Jorge Castro Mar 15 '12 at 19:44

closed as too localized by Ringtail, bodhi.zazen, jrg Apr 5 '12 at 13:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.