in reply to Perl5.8.8 error

Some companies do actually have machines with multiple versions of Perl installed. Which one gets called depends on the environment settings at the time.

It is not uncommon to have an installation of Perl for command-line utilities, and one for web applications.

One sometimes has the situation where they do not have root/super access and they wish to install a version of Perl for themselves.

The clues as to which Perl gets called start at the application being run - what is the name of the file at the top of the file in the hash-bang statement? Is it /usr/bin/perl or /usr/local/perl/bin/perl or something else?

Next - what are the environment variables provided to the script that is being run? You might want to study your web server configuration files in depth.

Replies are listed 'Best First'.
Re^2: Perl5.8.8 error
by Anonymous Monk on Oct 04, 2006 at 16:34 UTC
    I tried to reinstall. Make test runs fine and during the make install there is the same error: /usr/libexec/ld-elf.so.1: /usr/local/bin/perl: Undefined symbol "PL_exit_flags" I am logged with Root permissions. Thanks for any advice.
      Some hints:
      • check whether you have any old libperl.so lying around
      • check your LD_LIBRARY_PATH - it might point to bogus libs
      • check the output of ldd /usr/local/bin/perl and verify it shows the right libraries

      If the tests run fine, try setting LD_LIBRARY_PATH to the place where the perl libs (if building a shared libperl) reside.

      --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}

        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.