Embedding Python

Mark Tolonen nospam at nospam.com
Sat Mar 26 15:36:34 EST 2005


"Reinhold Birkenfeld" <reinhold-birkenfeld-nospam at wolke7.net> wrote in 
message news:3altmaF6caj9aU1 at individual.net...
> Heiko Wundram wrote:
>> Am Samstag, 26. März 2005 20:43 schrieb Mark Tolonen:
>>> On my system, for whatever reason, the .so library isn't present.  I 
>>> have
>>> the python-devel package installed.
>>
>> I actually can't believe this; do
>>
>> ldconfig -p|grep "python"
>
> Or, use
>
> ldd =python
>
> to exactly display what library your current executable is using.
>
> (users of a shell other than Zsh must replace '=python' by '`which 
> python`')
>
>
> Reinhold

$ ldd /usr/bin/python
        libdl.so.2 => /lib/libdl.so.2 (0x40023000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40028000)
        libutil.so.1 => /lib/libutil.so.1 (0x40036000)
        libm.so.6 => /lib/tls/libm.so.6 (0x40039000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I also (before I originally posted) did a "find / -name libpython*" with no 
success.  Looks like Redhat 9 ships with a statically linked version of 
python.

-Mark 





More information about the Python-list mailing list