Ich habe auf meinem Lenny System eine Python Extension installiert (von den Sourcen) welche wiederum eine shared library benötigt wird welche ich einen Schritt davor ebenfalls von den sourcen installiert habe.
Wenn ich nun versuche besagtes Python modul im Python interpreter zu importieren bekomme ich:
Code: Alles auswählen
Python 2.5.2 (r252:60911, Aug 16 2008, 14:25:14)
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyactivemq
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libactivemq-cpp.so.3: cannot open shared object file: No such file or directory
Tieferes graben fördete das zu Tage:
Code: Alles auswählen
[root@domU-12-31-38-00-95-D1 /] cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
[root@domU-12-31-38-00-95-D1 /] l /etc/ld.so.conf.d/
total 12
-rw-r--r-- 1 root root 64 2008-03-28 02:09 i486-linux-gnu.conf
-rw-r--r-- 1 root root 323 2008-03-28 02:21 libc6-xen.conf
-rw-r--r-- 1 root root 44 2008-03-28 02:09 libc.conf
[root@domU-12-31-38-00-95-D1 /] cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib