ls -ltr /usr/local/lib/python2.5/config/libpython2.5.so

lrwxrwxrwx 1 root root 21 Nov 12 10:48 /usr/local/lib/python2.5/config/
libpython2.5.so -> ../../libpython2.5.so

ls -ltr /usr/local/lib

-r-xr-xr-x  1 root root  4806649 Nov 11 11:22 libpython2.5.a
-r-xr-xr-x  1 root root  4806649 Nov 12 12:49 libpython2.5.so.1.0
lrwxrwxrwx  1 root root       19 Nov 12 12:49 libpython2.5.so ->
libpython2.5.so.1.0
drwxr-xr-x 21 root root    20480 Nov 12 12:50 python2.5

ldd /usr/local/apache2/modules/mod_python.so

        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b2d9e698000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b2d9e8b2000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00002b2d9eab6000)
        libm.so.6 => /lib64/libm.so.6 (0x00002b2d9ecba000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b2d9ef3d000)
        /lib64/ld-linux-x86-64.so.2 (0x00000039a2c00000)

echo $LD_LIBRARY_PATH

/usr/local/lib

On Nov 14, 5:17 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> Did you do a 'ls -L' on the symlink to validate it pointed at
> something?
>
> The relative location of where the .so will be is more a hint as for
> different systems it may not be in same relative location.
>
> Graham
>
> On Nov 13, 10:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote:
>
> > My apologies. I forgot to mention that I already tried what was
> > suggested in the article you pointed me at. I created a symlink in /
> > usr/local/lib/python2.5/config as directed however recompiling
> > mod_python still links to the library statically. Unless I missed a
> > step in the article I am starting to wonder if mod_python just
> > includes this library statically by default. Still, thanks for all the
> > help so far. I really appreciate it.
>
> > On Nov 13, 9:55 am, Graham Dumpleton <[EMAIL PROTECTED]>
> > wrote:
>
> > > Because you have created the symlink for the .so file so it appears
> > > next to the static library. It is arguably a a failing of standard
> > > Python installer that it doesn't do this. What to do is explained in
> > > document I previously pointed you at:
>
> > >  http://code.google.com/p/modwsgi/wiki/InstallationIssues
>
> > > Yes I know this is for mod_wsgi but same applies to mod_python.
>
> > > Graham
>
> > > On Nov 13, 8:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote:
>
> > > > ls -ltr /usr/local/lib
>
> > > > -r-xr-xr-x     1 root root  4806649 Nov 11 11:22 libpython2.5.a
> > > > -r-xr-xr-x     1 root root  4806649 Nov 12 12:49 libpython2.5.so.1.0
> > > > lrwxrwxrwx  1 root root            19 Nov 12 12:49 libpython2.5.so ->
> > > > libpython2.5.so.1.0
>
> > > > echo $LD_LIBRARY_PATH
>
> > > > /usr/local/lib
>
> > > > ldd /usr/local/bin/python
>
> > > >         libpython2.5.so.1.0 => /usr/local/lib/libpython2.5.so.1.0
> > > > (0x00002b6d8efc5000)
> > > >         libpthread.so.0 => /lib64/libpthread.so.0 (0x00000039a4a00000)
> > > >         libdl.so.2 => /lib64/libdl.so.2 (0x00000039a4600000)
> > > >         libutil.so.1 => /lib64/libutil.so.1 (0x00000039b3400000)
> > > >         libm.so.6 => /lib64/libm.so.6 (0x00000039a4200000)
> > > >         libc.so.6 => /lib64/libc.so.6 (0x00000039a3e00000)
> > > >         /lib64/ld-linux-x86-64.so.2 (0x00000039a2c00000)
>
> > > > recompile mod_python and do ldd /usr/local/apache2/modules/
> > > > mod_python.so
>
> > > >         libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b74c34f7000)
> > > >         libdl.so.2 => /lib64/libdl.so.2 (0x00002b74c3711000)
> > > >         libutil.so.1 => /lib64/libutil.so.1 (0x00002b74c3915000)
> > > >         libm.so.6 => /lib64/libm.so.6 (0x00002b74c3b19000)
> > > >         libc.so.6 => /lib64/libc.so.6 (0x00002b74c3d9c000)
> > > >         /lib64/ld-linux-x86-64.so.2 (0x00000039a2c00000)
>
> > > > I still don't get why the library is being compiled in statically.
>
> > > > On Nov 13, 12:11 am, Graham Dumpleton <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > On Nov 12, 11:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote:
>
> > > > > > echo '/usr/local/lib' >> /etc/ld.so.conf
>
> > > > > > more /etc/ld.so.conf
>
> > > > > > include ld.so.conf.d/*.conf
> > > > > > /usr/local/lib
>
> > > > > > ldd /usr/local/bin/python
>
> > > > > >         libpython2.5.so.1.0 => not found
> > > > > >         libpthread.so.0 => /lib64/libpthread.so.0 
> > > > > > (0x00000039a4a00000)
> > > > > >         libdl.so.2 => /lib64/libdl.so.2 (0x00000039a4600000)
> > > > > >         libutil.so.1 => /lib64/libutil.so.1 (0x00000039b3400000)
> > > > > >         libm.so.6 => /lib64/libm.so.6 (0x00000039a4200000)
> > > > > >         libc.so.6 => /lib64/libc.so.6 (0x00000039a3e00000)
> > > > > >         /lib64/ld-linux-x86-64.so.2 (0x00000039a2c00000)
>
> > > > > Where is libpython2.5.so installed? What are the permissions on it?
>
> > > > > What do you get for:
>
> > > > >   echo $LD_LIBRARY_PATH
>
> > > > > just prior to running 'ld'?
>
> > > > > Graham
>
> > > > > > On Nov 12, 11:57 am, marco ghidinelli <[EMAIL PROTECTED]> wrote:
>
> > > > > > > On Wed, Nov 12, 2008 at 03:22:02AM -0800, huw_at1 wrote:
>
> > > > > > > > An update on this.
>
> > > > > > > > 'which python' returns:
>
> > > > > > > >         libpython2.5.so.1.0 => not found
> > > > > > > >         libpthread.so.0 => /lib64/libpthread.so.0 
> > > > > > > > (0x00000039a4a00000)
> > > > > > > >         libdl.so.2 => /lib64/libdl.so.2 (0x00000039a4600000)
> > > > > > > >         libutil.so.1 => /lib64/libutil.so.1 (0x00000039b3400000)
> > > > > > > >         libm.so.6 => /lib64/libm.so.6 (0x00000039a4200000)
> > > > > > > >         libc.so.6 => /lib64/libc.so.6 (0x00000039a3e00000)
> > > > > > > >         /lib64/ld-linux-x86-64.so.2 (0x00000039a2c00000)
>
> > > > > > > > This explains why I cannot compile mod_python without first 
> > > > > > > > setting
> > > > > > > > the LD_LIBRARY_PATH to '/usr/local/lib'. I don't know if this 
> > > > > > > > is the
> > > > > > > > reason why the mod_python compilation continuously compiles 
> > > > > > > > with the
> > > > > > > > python library as static. I upgraded myapacheto the latest 
> > > > > > > > version
> > > > > > > > however I still am getting segmentation faults on user 
> > > > > > > > authentication.
> > > > > > > > Which potentially suggests that the problem is notapacheand is
> > > > > > > > something else like this issue.
>
> > > > > > > echo '/usr/local/lib' >> /etc/ld.so.conf
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to