Ijon.Tichi has asked for the wisdom of the Perl Monks concerning the following question:

Hi,


I desperately need your help. I've already asked this question on one other board but without any luck.
I want to install locally a new version of Perl, lets say 5.16.1 (OS is Debian 6.0.3.)
I tried to do it by the perlbrew and also by configure/make/make install. In both cases (and I tried different versions of Perl) I got the same error message.
... `sh cflags "optimize='-O2'" perlmini.o` -DPERL_IS_MINIPERL -DPERL_EX +TERNAL_GLOB perlmini.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -fstack-pr +otector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS= +64 -std=c89 -O2 -Wall -ansi -W -Wextra -Wdeclaration-after-statemen +t -Wendif-labels -Wc++-compat -Wwrite-strings cc -fstack-protector -L/usr/local/lib -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reent +r.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ct +l.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o + globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o +pp_sort.o \ miniperlmain.o opmini.o perlmini.o -lnsl -ldl -lm -lcrypt -lut +il -lc ./miniperl -w -Ilib -MExporter -e '<?>' || make minitest /bin/ln -s perldelta.pod pod/perl5142delta.pod ./miniperl -Ilib autodoc.pl ./miniperl -Ilib -Idist/Cwd -Idist/Cwd/lib pod/perlmodlib.PL -q ./miniperl -Ilib make_patchnum.pl Updating 'git_version.h' and 'lib/Config_git.pl' ./miniperl -Ilib configpm written lib/Config.pod updated lib/Config.pm updated lib/Config_heavy.pl ./miniperl -Ilib write_buildcustomize.pl >lib/buildcustomize.pl ./miniperl -Ilib make_ext.pl cpan/Archive-Extract/pm_to_blib MAKE=make + LIBPERL_A=libperl.a Making Archive::Extract (all) Creating Makefile.PL in cpan/Archive-Extract for Archive::Extract Running Makefile.PL in cpan/Archive-Extract ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR +=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a Writing Makefile for Archive::Extract Writing MYMETA.yml make[1]: Entering directory `/home/itjrt/perl5/perlbrew/build/perl-5.1 +4.2/cpan/Archive-Extract' 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 Archive::Extract Writing MYMETA.yml ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make[1]: *** [Makefile] Error 1 make[1]: Leaving directory `/home/itjrt/perl5/perlbrew/build/perl-5.14 +.2/cpan/Archive-Extract' make config PERL_CORE=1 LIBPERL_A=libperl.a failed, continuing anyway +... Making all in cpan/Archive-Extract make all PERL_CORE=1 LIBPERL_A=libperl.a make[1]: Entering directory `/home/itjrt/perl5/perlbrew/build/perl-5.1 +4.2/cpan/Archive-Extract' 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 Archive::Extract Writing MYMETA.yml ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make[1]: *** [Makefile] Error 1 make[1]: Leaving directory `/home/itjrt/perl5/perlbrew/build/perl-5.14 +.2/cpan/Archive-Extract' Unsuccessful make(cpan/Archive-Extract): code=512 at make_ext.pl line +467. make: *** [cpan/Archive-Extract/pm_to_blib] Error 25 Leaving directory `/home/itjrt/perl5/perlbrew/build/perl-5.14.2/cpan/A +rchive-Extract

Do you have any ideas how it could be fixed? Thanks a lot!

Replies are listed 'Best First'.
Re: Perl install issue
by Anonymous Monk on Aug 30, 2012 at 13:38 UTC

    What happens when you run make again?

    Also, check your system clock :)

      After repeating 'make' I get the same error again.
      And what is about system clock? The result of 'date' seems to be correct.

        And what is about system clock? The result of 'date' seems to be correct.

        What is it compared to the age of Makefile.PL and Makefile?

        I recall seeing messages like that when my localtime was in the past (my time settings weren't updated for modern daylight savings), and Makefile.PL was in the future, so the generated Makefile was older than Makefile.PL

        touch Makefile.PL fixed that issue

        but 5.16.1 was released weeks ago :)