Hi all,
I am trying to do a fresh install in a CentOS 6.4 server, but cpanm
can not be installed.
Somebody knows how can I fix this error??
[root@cstst02 ~]# curl --insecure -L
http://cpanmin.us | perl - App::cpanminus
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 261k 100 261k 0 0 183k 0 0:00:01 0:00:01 --:--:-- 930k
--> Working on App::cpanminus
Fetching
http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6941.tar.gz
... OK
Configuring App-cpanminus-1.6941 ... OK
==> Found dependencies: Module::Build
--> Working on Module::Build
Fetching
http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4007.tar.gz
... OK
==> Found dependencies: Module::Build
Configuring Module-Build-0.4007 ... OK
==> Found dependencies: Module::Metadata, CPAN::Meta, version
--> Working on Module::Metadata
Fetching
http://www.cpan.org/authors/id/B/BO/BOBTFISH/Module-Metadata-1.000014.tar.gz
... OK
Configuring Module-Metadata-1.000014 ... OK
==> Found dependencies: version
--> Working on version
Fetching
http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9903.tar.gz
... OK
Configuring version-0.9903 ... OK
Building and testing version-0.9903 ... FAIL
! Installing version failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
! Installing the dependencies failed: Installed version (0.77) of
version is not in range '0.87'
! Bailing out the installation for Module-Metadata-1.000014.
--> Working on CPAN::Meta
Fetching
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.132140.tar.gz
... OK
Configuring CPAN-Meta-2.132140 ... OK
==> Found dependencies: version, CPAN::Meta::Requirements
--> Working on CPAN::Meta::Requirements
Fetching
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz
... OK
Configuring CPAN-Meta-Requirements-2.122 ... OK
Building and testing CPAN-Meta-Requirements-2.122 ... FAIL
! Installing CPAN::Meta::Requirements failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
! Installing the dependencies failed: Installed version (0.77) of
version is not in range '0.88', Module 'CPAN::Meta::Requirements' is
not installed
! Bailing out the installation for CPAN-Meta-2.132140.
! Installing the dependencies failed: Module 'Module::Metadata' is not
installed, Module 'CPAN::Meta' is not installed, Installed version
(0.77) of version is not in range '0.87'
! Bailing out the installation for Module-Build-0.4007.
! Installing the dependencies failed: Installed version (0.35) of
Module::Build is not in range '0.36'
! Bailing out the installation for App-cpanminus-1.6941.
Example log:
cpanm (App::cpanminus) 1.6937 on perl 5.010001 built for i386-linux-thread-multi
Work directory is /root/.cpanm/work/1377081249.11700
You have make /usr/bin/make
You have LWP 5.833
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Searching App::cpanminus on cpanmetadb ...
--> Working on App::cpanminus
Fetching
http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.6941.tar.gz
-> OK
Unpacking App-cpanminus-1.6941.tar.gz
Entering App-cpanminus-1.6941
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.55_02)
Configuring App-cpanminus-1.6941
Running Makefile.PL
Warning: prerequisite Module::Build 0.36 not found. We have 0.35.
Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
-> OK
Finding PREREQ from Makefile ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.55_02)
Checking if you have Module::Build 0.36 ... No (0.35 < 0.36)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
==> Found dependencies: Module::Build
Searching Module::Build on cpanmetadb ...
--> Working on Module::Build
Fetching
http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4007.tar.gz
-> OK
Unpacking Module-Build-0.4007.tar.gz
Entering Module-Build-0.4007
Checking configure dependencies from META.json
Checking if you have Module::Build 0.36 ... No (0.35 < 0.36)
==> Found dependencies: Module::Build
Already tried Module::Build. Skipping.
Configuring Module-Build-0.4007
Running Build.PL
*** BOOTSTRAPPING version ***
*** BOOTSTRAPPING Module::Metadata ***
Checking prerequisites...
requires:
! CPAN::Meta is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Could not create MYMETA files
Copied META.yml to MYMETA.yml for bootstrapping
These additional prerequisites must be installed:
requires:
! version (we need version 0.87)
! Module::Metadata (we need version 1.000002)
Creating new 'Build' script for 'Module-Build' version '0.4007'
-> OK
Checking dependencies from MYMETA.yml ...
Checking if you have Module::Metadata 1.000002 ... No
Checking if you have File::Spec 0.82 ... Yes (3.30)
Checking if you have ExtUtils::Install 0 ... Yes (1.54)
Checking if you have File::Compare 0 ... Yes (1.1006)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have CPAN::Meta 2.110420 ... No
Checking if you have File::Path 0 ... Yes (2.08)
Checking if you have Perl::OSType 1 ... Yes (1.003)
Checking if you have ExtUtils::Manifest 0 ... Yes (1.56)
Checking if you have ExtUtils::CBuilder 0.27 ... Yes (0.27)
Checking if you have Getopt::Long 0 ... Yes (2.38)
Checking if you have File::Copy 0 ... Yes (2.14)
Checking if you have Parse::CPAN::Meta 1.4401 ... Yes (1.4405)
Checking if you have Test::Harness 3.16 ... Yes (3.17)
Checking if you have Text::Abbrev 0 ... Yes (1.01)
Checking if you have ExtUtils::ParseXS 2.21 ... Yes (2.2203)
Checking if you have Data::Dumper 0 ... Yes (2.124)
Checking if you have version 0.87 ... No (0.77 < 0.87)
Checking if you have Pod::Man 2.17 ... Yes (2.22)
Checking if you have CPAN::Meta::YAML 0.003 ... Yes (0.008)
Checking if you have Test::More 0.49 ... Yes (0.98)
Checking if you have Text::ParseWords 0 ... Yes (3.27)
Checking if you have File::Temp 0.15 ... Yes (0.22)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have Cwd 0 ... Yes (3.30)
Checking if you have ExtUtils::Mkbootstrap 0 ... Yes (6.55_02)
==> Found dependencies: Module::Metadata, CPAN::Meta, version
Searching Module::Metadata on cpanmetadb ...
--> Working on Module::Metadata
Fetching
http://www.cpan.org/authors/id/B/BO/BOBTFISH/Module-Metadata-1.000014.tar.gz
-> OK
Unpacking Module-Metadata-1.000014.tar.gz
Entering Module-Metadata-1.000014
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring Module-Metadata-1.000014
Running Makefile.PL
Warning: prerequisite version 0.87 not found. We have 0.77.
Checking if your kit is complete...
Looks good
Writing Makefile for Module::Metadata
-> OK
Finding PREREQ from Makefile ...
Checking if you have strict 0 ... Yes (1.04)
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have IO::File 0 ... Yes (1.14)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have version 0.87 ... No (0.77 < 0.87)
Checking if you have File::Spec 0 ... Yes (3.30)
Checking if you have vars 0 ... Yes (1.01)
Checking if you have Carp 0 ... Yes (1.11)
==> Found dependencies: version
Searching version on cpanmetadb ...
--> Working on version
Fetching
http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9903.tar.gz
-> OK
Unpacking version-0.9903.tar.gz
Entering version-0.9903
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring version-0.9903
Running Makefile.PL
Testing if you have a C compiler
Checking if your kit is complete...
Looks good
Writing Makefile for version::vxs
Writing Makefile for version
-> OK
Finding PREREQ from Makefile ...
Checking if you have Test::More 0.45 ... Yes (0.98)
Checking if you have File::Temp 0.13 ... Yes (0.22)
Building and testing version-0.9903
cp lib/version/Internals.pod blib/lib/version/Internals.pod
cp lib/
version.pm blib/lib/
version.pm
cp lib/version.pod blib/lib/version.pod
cp vperl/
vpp.pm blib/lib/version/
vpp.pm
make[1]: Entering directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
cp lib/version/
vxs.pm ../blib/lib/version/
vxs.pm
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -f
stack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -DVERSION=\"0.9903\"
-DXS_VERSION=\"0.9903\" -fPIC "-I/usr/lib/perl5/CORE" vutil.c
In file included from vutil.c:10:
vutil.h: In function âPerl_ck_warnerâ:
vutil.h:43: warning: unused variable âargsâ
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl5/ExtUtils/typemap -typemap ../lib/version/typemap
vxs.xs > vxs.xsc && mv vxs.xsc vxs.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -f
stack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -DVERSION=\"0.9903\"
-DXS_VERSION=\"0.9903\" -fPIC "-I/usr/lib/perl5/CORE" vxs.c
In file included from vxs.xs:6:
vutil.h: In function âPerl_ck_warnerâ:
vutil.h:43: warning: unused variable âargsâ
vxs.c: At top level:
vutil.h:41: warning: âPerl_ck_warnerâ defined but not used
vxs.c: In function âXS_version__vxs__VERSIONâ:
vxs.xs:231: warning: âretâ may be used uninitialized in this function
vxs.xs:231: note: âretâ was declared here
Running Mkbootstrap for version::vxs ()
chmod 644
vxs.bs
rm -f ../blib/arch/auto/version/vxs/vxs.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables -L/usr/local/lib vutil.o
vxs.o
-o ../blib/arch/auto/version/vxs/vxs.so \
\
chmod 755 ../blib/arch/auto/version/vxs/vxs.so
cp
vxs.bs ../blib/arch/auto/version/vxs/
vxs.bs
chmod 644 ../blib/arch/auto/version/vxs/
vxs.bs
make[1]: Leaving directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
Manifying blib/man3/version::Internals.3pm
Manifying blib/man3/version.3pm
make[1]: Entering directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
make[1]: Leaving directory
`/root/.cpanm/work/1377081249.11700/version-0.9903/vutil'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'make sure we exported qv() properly'
# at t/
coretests.pm line 473.
Undefined subroutine &main::qv called at t/
coretests.pm line 474.
# Looks like you failed 1 test of 119.
# Looks like your test exited with 2 just after 119.
t/01base.t ........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/119 subtests
# Failed test 'make sure we exported qv() properly'
# at t/
coretests.pm line 473.
Undefined subroutine &main::qv called at t/
coretests.pm line 474.
# Looks like you failed 1 test of 125.
# Looks like your test exited with 2 just after 125.
t/02derived.t .....
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/125 subtests
t/03require.t ..... ok
t/04strict_lax.t .. ok
t/05sigdie.t ...... ok
t/06noop.t ........ ok
t/07locale.t ...... ok
Test Summary Report
-------------------
t/01base.t (Wstat: 512 Tests: 119 Failed: 1)
Failed test: 119
Non-zero exit status: 2
t/02derived.t (Wstat: 512 Tests: 125 Failed: 1)
Failed test: 125
Non-zero exit status: 2
Files=7, Tests=726, 1 wallclock secs ( 0.14 usr 0.02 sys + 0.66
cusr 0.06 csys = 0.88 CPU)
Result: FAIL
Failed 2/7 test programs. 2/726 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing version failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
-> FAIL Installing the dependencies failed: Installed version (0.77)
of version is not in range '0.87'
-> FAIL Bailing out the installation for Module-Metadata-1.000014.
Searching CPAN::Meta on cpanmetadb ...
--> Working on CPAN::Meta
Fetching
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.132140.tar.gz
-> OK
Unpacking CPAN-Meta-2.132140.tar.gz
Entering CPAN-Meta-2.132140
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.55_02)
Configuring CPAN-Meta-2.132140
Running Makefile.PL
Warning: prerequisite CPAN::Meta::Requirements 2.121 not found.
Warning: prerequisite version 0.88 not found. We have 0.77.
Checking if your kit is complete...
Looks good
Writing Makefile for CPAN::Meta
-> OK
Finding PREREQ from Makefile ...
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have File::Spec 0 ... Yes (3.30)
Checking if you have List::Util 0 ... Yes (1.21)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have File::Spec::Functions 0 ... Yes (3.30)
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have Parse::CPAN::Meta 1.4403 ... Yes (1.4405)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Checking if you have Data::Dumper 0 ... Yes (2.124)
Checking if you have version 0.88 ... No (0.77 < 0.88)
Checking if you have overload 0 ... Yes (1.07)
Checking if you have CPAN::Meta::YAML 0.008 ... Yes (0.008)
Checking if you have utf8 0 ... Yes (1.07)
Checking if you have Carp 0 ... Yes (1.11)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have Test::More 0.88 ... Yes (0.98)
Checking if you have JSON::PP 2.27200 ... Yes (2.27202)
Checking if you have CPAN::Meta::Requirements 2.121 ... No
Checking if you have File::Temp 0.20 ... Yes (0.22)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have IO::Dir 0 ... Yes (1.07)
==> Found dependencies: version, CPAN::Meta::Requirements
Already tried version. Skipping.
Searching CPAN::Meta::Requirements on cpanmetadb ...
--> Working on CPAN::Meta::Requirements
Fetching
http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-2.122.tar.gz
-> OK
Unpacking CPAN-Meta-Requirements-2.122.tar.gz
Entering CPAN-Meta-Requirements-2.122
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.17 ... Yes (6.55_02)
Configuring CPAN-Meta-Requirements-2.122
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for CPAN::Meta::Requirements
-> OK
Finding PREREQ from Makefile ...
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have version 0.77 ... Yes (0.77)
Checking if you have Carp 0 ... Yes (1.11)
Checking if you have Test::More 0.88 ... Yes (0.98)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have File::Find 0 ... Yes (1.14)
Checking if you have File::Temp 0 ... Yes (0.22)
Building and testing CPAN-Meta-Requirements-2.122
cp lib/CPAN/Meta/Requirements.pm blib/lib/CPAN/Meta/Requirements.pm
Manifying blib/man3/CPAN::Meta::Requirements.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ........ ok
t/accepts.t ........... ok
Version string 'invalid_version' contains invalid data; ignoring:
'invalid_version' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.
# Failed test 'hook fixes invalid version'
# at t/bad_version_hook.t line 29.
# Structures begin differing at:
# $got->{Foo::Baz} = '0'
# $expected->{Foo::Baz} = '42'
Version string 'invalid_version' contains invalid data; ignoring:
'invalid_version' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.
# Failed test 'dies if hook doesn't return version object: did not die'
# at t/bad_version_hook.t line 14.
# Looks like you failed 2 tests of 2.
t/bad_version_hook.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/basic.t ............. ok
t/finalize.t .......... ok
Version string '= 2' contains invalid data; ignoring: '= 2' at
/root/.cpanm/work/1377081249.11700/CPAN-Meta-Requirements-2.122/blib/lib/CPAN/Meta/Requirements.pm
line 31.
# Failed test 'we die when we can't understand a version spec: did not die'
# at t/from-hash.t line 13.
# Looks like you failed 1 test of 4.
t/from-hash.t .........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/merge.t ............. ok
Test Summary Report
-------------------
t/bad_version_hook.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/from-hash.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=7, Tests=53, 1 wallclock secs ( 0.09 usr 0.02 sys + 0.50 cusr
0.07 csys = 0.68 CPU)
Result: FAIL
Failed 2/7 test programs. 3/53 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing CPAN::Meta::Requirements failed. See
/root/.cpanm/work/1377081249.11700/build.log for details. Retry with
--force to force install it.
-> FAIL Installing the dependencies failed: Installed version (0.77)
of version is not in range '0.88', Module 'CPAN::Meta::Requirements'
is not installed
-> FAIL Bailing out the installation for CPAN-Meta-2.132140.
Already tried version. Skipping.
-> FAIL Installing the dependencies failed: Module 'Module::Metadata'
is not installed, Module 'CPAN::Meta' is not installed, Installed
version (0.77) of version is not in range '0.87'
-> FAIL Bailing out the installation for Module-Build-0.4007.
-> FAIL Installing the dependencies failed: Installed version (0.35)
of Module::Build is not in range '0.36'
-> FAIL Bailing out the installation for App-cpanminus-1.6941.
Thanks.