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

Hi, I am trying to install perl locally on the server. I do not get any error or warning when I run "configure". However, when i run "make", I get the following error:

==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make[2]: *** [Makefile] Error 1 make[2]: Leaving directory `/home/jeena/bin/perl-5.18.0_source/dist/At +tribute-Handlers' make config PERL_CORE=1 LIBPERL_A=libperl.a failed, continuing anyway +... Making all in dist/Attribute-Handlers make all PERL_CORE=1 LIBPERL_A=libperl.a make[2]: Entering directory `/home/jeena/bin/perl-5.18.0_source/dist/A +ttribute-Handlers'

Makefile out-of-date with respect to Makefile.PL

Cleaning current config before rebuilding Makefile... make -f Makefile.old clean > /dev/null 2>&1 ../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=pe +rl" "INSTALLMAN1DIR=none" "INSTALLMAN3DIR=none" "PERL_CORE=1" "LIBPER +L_A=libperl.a" Writing Makefile for Attribute::Handlers ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make[2]: *** [Makefile] Error 1 make[2]: Leaving directory `/home/jeena/bin/perl-5.18.0_source/dist/At +tribute-Handlers' Unsuccessful make(dist/Attribute-Handlers): code=512 at make_ext.pl li +ne 490. make[1]: *** [dist/Attribute-Handlers/pm_to_blib] Error 25 make[1]: Leaving directory `/home/jeena/bin/perl-5.18.0_source' make: *** [install] Error 2

I seek help to tackle this error and complete installation.

Thanks

Replies are listed 'Best First'.
Re: error installing perl 5.18.0 with "make"
by Corion (Patriarch) on Aug 08, 2013 at 12:29 UTC

    The traditional cause of errors for this is if you are building Perl on a network mounted volume and the (NFS / AFS) server has a time which differs from your local machine.

    More contemporary, I can imagine that the same issue crops up if you are building Perl in a VM and have a drive local to the enclosing machine mounted into the VM, and have clock skew between the VM and the enclosing machine.

Re: error installing perl 5.18.0 with "make"
by tobyink (Canon) on Aug 08, 2013 at 12:19 UTC

    If you've already got a (perhaps older) version of Perl knocking about, then I'd strongly recommend installing App::perlbrew through CPAN. perlbrew can be used to build, manage and switch between multiple versions of Perl on the same machine. It makes things very simple.

    Anyway, it sounds like one of the built files in /home/jeena/bin/perl-5.18.0_source/dist/Attribute-Handlers is older than the Makefile, so make thinks your Makefile has been recently modified and wants to re-start the make. Normally you'd just type "make" here and everything would be fine and dandy. However, if that's not working, it could be a permissions problem that's preventing make from clearing away some remnants from the last time it was run. Try doing something like chmod -R u+rw /home/jeena/bin/perl-5.18.0_source to make sure you have full read/write permission over everything in the build directory.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name