Checking for libc vs. glibc using Python

Thomas A. Bryan tbryan at python.net
Fri Oct 22 05:41:21 EDT 1999


"M.-A. Lemburg" wrote:

> > RedHat 6.0 looks exactly the same (except the path prefixes on the
> > right differ),
> >
> > Solaris output looks is also very similar:
> >         libX11.so.4 =>   /usr/lib/libX11.so.4
> >         libsocket.so.1 =>        /usr/lib/libsocket.so.1
> >         libnsl.so.1 =>   /usr/lib/libnsl.so.1
> >         libdl.so.1 =>    /usr/lib/libdl.so.1
> >         libc.so.1 =>     /usr/lib/libc.so.1
> 
> Hmm, not quite :-) libc.so.1 -- that was a looong time ago ?! Seems
> that Redhat chose a different naming scheme here.

Notice that he was talking about *Solaris* when he gave that listing.
Red Hat looks like SuSE.  You can check it out on the Starship.

[tbryan at starship tbryan]$ ldd /usr/bin/python
        libdl.so.2 => /lib/libdl.so.2 (0x40004000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40007000)
        libm.so.6 => /lib/libm.so.6 (0x40014000)
        libc.so.6 => /lib/libc.so.6 (0x4002f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)




More information about the Python-list mailing list