problems trying to build python 2.6 as a shared library

Christian Heimes lists at
Fri Sep 25 13:44:50 CEST 2009

Marco Nawijn wrote:
> The dynamic loader cannot find the python shared library.  There are
> at least 2 options:
>     1. Add path that contains the shared library to the
> LD_LIBRARY_PATH environment variable. In a bash shell this can be
> accomplished by:  export LD_LIBRARY_PATH=/path/to/python_shared_lib:
>     2. Add path to dynamic linker configuration file. This typically
> is in '/etc/'. See man page for ld for more information.

3. Set LD_RUN_PATH before you link the shared library or use the -rlink
option of the linker, see man(1) ld.


More information about the Python-list mailing list