tjperl has asked for the wisdom of the Perl Monks concerning the following question:

Hi. We are using a FBSD server for our DNS, we have changed ISP's and I am left in unfamiliar territory. I am trying to get WebMin to work and have a perl error. If someone could help me out I would appreciate it. I am trying to use perl5.8.8. I see that there is a perl* and a perl5.8.8* on the system. Does this mean that there are two different versions? No matter what I do I get the following error: Undefined symbol "PL_exit_flags" This happens when I type perl -v as well. I really need some additional wisdom!! :) Thanks in advance!

Replies are listed 'Best First'.
Re: Perl5.8.8 error
by Joost (Canon) on Oct 04, 2006 at 13:18 UTC
      Joost, Thanks for fast reply. Glad to know that it is normal for the perl interpreter to install both "perl and "perl5.x.x". The big problem...I am the sysadmin...I am somewhat familiar with Linux but not at all with Perl. So, I should re-install perl? I did that once already (same results), could you point me to the proper installation procedure? Obviously I have missed something. Thanks again!
Re: Perl5.8.8 error
by monarch (Priest) on Oct 04, 2006 at 14:21 UTC
    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.

      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}