in reply to Re: perl installation
in thread perl installation

Hi, i added env as
export PERLLIB=/tools/sol/perl/lib
and did (I am installing module in local directory)
$ perl Makefile.PL PREFIX=/Perl_Modules
Perl lib version (v5.8.8) doesn't match executable version (v5.8.4) at /tools/sol/perl/lib/Config.pm line 46.
Compilation failed in require at tools/sol/perl/lib /ExtUtils/MakeMaker/Config.pm line 6. BEGIN failed--compilation aborted at /tools/sol/perl /lib/ExtUtils/MakeMaker/Config.pm line 6. Compilation failed in require at /tools/sol/perl/lib /ExtUtils/MakeMaker.pm line 7. BEGIN failed--compilation aborted at /tools/sol/perl /lib/ExtUtils/MakeMaker.pm line 7. Compilation failed in require at Makefile.PL line 1. BEGIN failed--compilation aborted at Makefile.PL line 1.

Replies are listed 'Best First'.
Re^3: perl installation
by Corion (Patriarch) on Mar 07, 2008 at 07:19 UTC

    Yes. Along with launching your local version of cpan, you also need to launch your local version of perl. Which is why I recommended adjusting $ENV{PATH} so your local Perl gets found first. The error message explains that well:

    Perl lib version (v5.8.8) doesn't match executable version (v5.8.4)

    You're running perl5.8.4 but you have set up the Perl libraries to point to those of 5.8.8. To fix this, you need to launch the 5.8.8 Perl as well. Do:

    /tools/sol/perl/bin/perl Makefile.PL PREFIX=/Perl_Modules

    instead of using

    perl Makefile.PL PREFIX=/Perl_Modules
      "I recommended adjusting $ENV{PATH} so your local Perl gets found first. The error message explains that well:"
      Sorry, I dont know how to do it
      Could you please help me...Thanks for your support

        This is not really a Perl issue. You should ask your system administrator on how to best do that in your environment.

        A quick fix would likely be to execute:

        export PATH=/tools/sol/perl/bin;$PATH

        in your shell session or to add a line like that to your .profile. Or you could actually read what I gave you as a solution in my first reply instead of blindly changing things around and praying for the best.

Re^3: perl installation
by Anonymous Monk on Mar 07, 2008 at 07:32 UTC
    Don't do that then