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

Im having trouble installing Date::Calc. perl Makefile.PL works fine, but when I type make I get the following error:
Perl lib version (5.00503) doesn't match executable version (5.002) at + /usr/perl5/5.00503/sun4-solaris/Config.pm line 7. BEGIN failed--compilation aborted at /usr/perl5/5.00503/ExtUtils/MakeM +aker.pm line 13. BEGIN failed--compilation aborted. *** Error code 2 make: Fatal error: Command failed for target `Version_check'
I know this not really a perl question directly, but has anyone else seen this problem? I am running perl 5.00503. I don't know why MakeMaker.pm says require 5.002. Or where is a better place to ask this question?

Replies are listed 'Best First'.
Re: Installing Date::Calc
by arturo (Vicar) on Aug 03, 2001 at 21:51 UTC

    It looks to me like what's happening is that you're *running* perl 5.002 and MakeMaker is require-ing 5.00503</code>

    Try these two commands:

    which perl
    and
    /path/you/got/from/the/previous/command/perl -V

    Read the output carefully. That will tell you which version of perl you run by default, the first one found on your PATH. Really, you only need issue perl -V to do that but the other stuff will give you useful diagnostic information. The moral: make sure that you call Makefile.PL with a perl interpreter that's at least version 5.00503.

    HTH.

    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'