libraries and paths ... (argh!)
Gerhard Häring
gh at ghaering.de
Thu May 8 14:32:38 EDT 2003
Axel Bock wrote:
> Hi all,
>
> I'm writing here cause I have an annoying problem.
> I have:
> - linux gentoo 1.4rc_somewhat
> - custom compiled berkeley DB 4.1 in /home/.../db-4.1
> [...]
>>>>import bsddb3
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/home/tm/projects/python22/lib/python2.2/site-packages/ \\
> bsddb3/__init__.py", line 46, in ?
> import _db
> ImportError: /home/tm/projects/python22/lib/python2.2/site-packages/ \\
> bsddb3/_db.so: undefined symbol: log_archive
>
> -------------------snip----------------------
>
> Hm. As said - I think it finds first the one in /lib, which is wrong.
> I already set LD_LIBRARY_PATH to the correct location, but ... ??
>
> Has anyone any hint how I could solve this? All help is very much
> appreciated!
If you want to avoid setting LD_LIBRARY_PATH (which should work,
though), you can throw the "-rpath /home/..../lib/" into the options
used when compiling Python's bsddb module.
-- Gerhard
More information about the Python-list
mailing list