in reply to Re^3: Perl5.8.8 error
in thread Perl5.8.8 error

Thanks for the hints....however, I don't know what I am looking for since I am so new to Linux and Perl. I hope it is ok. I am pasting what I found...but, not sure about what I should be seeing.

Please let me know if you see anything.

<XXXX# ldd /usr/local/bin/perl> /usr/local/bin/perl: libperl.so => /usr/lib/libperl.so (0x28067000) libm.so.2 => /usr/lib/libm.so.2 (0x280ff000) libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x2811a000) libutil.so.3 => /usr/lib/libutil.so.3 (0x28133000) libc.so.4 => /usr/lib/libc.so.4 (0x2813c000) XXXX# find / -name libperl.so /lump/usr.local/lib/perl5/5.8.8/mach/CORE/libperl.so /lump/usr.ports/lang/perl5.8/work/perl-5.8.8/libperl.so /usr/lib/libperl.so XXXX# libperl.so /usr/lib/libperl.so: Permission denied. XXX# ls -l libperl.so lrwxr-xr-x 1 root wheel 12 Dec 17 2003 libperl.so@ -> libperl.so.3 + XXXX# ls -l libperl.* -r--r--r-- 1 root wheel 851158 Dec 17 2003 libperl.a lrwxr-xr-x 1 root wheel 12 Dec 17 2003 libperl.so@ -> libperl. +so.3 -r--r--r-- 1 root wheel 614824 Dec 17 2003 libperl.so.3 XXXX# find / -name libperl.so /usr/local/bin/perl: /lump/usr.local/lib/perl5/5.8.8/mach/CORE/libperl.so /lump/usr.ports/lang/perl5.8/work/perl-5.8.8/libperl.so XXXX# /usr/lib/libperl.so XXXX# libperl.so libperl.so => /usr/lib/libperl.so (0x28067000) /usr/lib/libperl.so: Permission denied. XXXX# ls -l libperl.so lrwxr-xr-x 1 root wheel 12 Dec 17 2003 libperl.so@ -> libperl.so.3 + XXXX# ls -l libperl.* -r--r--r-- 1 root wheel 851158 Dec 17 2003 libperl.a libm.so.2 => /usr/lib/libm.so.2 (0x280ff000) lrwxr-xr-x 1 root wheel 12 Dec 17 2003 libperl.so@ -> libperl. +so.3

I really appreciate the assistance.

Replies are listed 'Best First'.
Re^5: Perl5.8.8 error
by Joost (Canon) on Oct 04, 2006 at 21:40 UTC
    Note that even if you have a libperl.so in /usr/local/lib and none in /usr/lib, you still need to have the library loader look in /usr/local/lib. A few unixes have this configured automatically, but I know of at least one linux distro that doesn't (i.e. RedHat linux).

    On linux you have a file /etc/ld.so.conf that contains the directories (beside /lib and /usr/lib) to be searched for libraries. If you have that file and it doesn't contain a /usr/local/lib line, you should probably add it and run ldconfig. On BSD things are probably a bit different. Look for documentation on ld.so and the LD_LIBRARY_PATH environment variable.

Re^5: Perl5.8.8 error
by shmem (Chancellor) on Oct 04, 2006 at 21:18 UTC
    In the process of building perl the shared library (a.k.a. shared object) libperl.so is built. It seems that upon make install perl doesn't get the freshly built libperl.so, but the one residing in /usr/lib, dated from 2003. Bummer.

    Move that one, and the libperl.a besides, out of the way and try make install again.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}