Hello List,
Running CentOS Linux release 7.0.1406 (Core), and trying to update CPAN from version 1.98 to version 2.10, but it fails.
<snip> t/97-process_setup_options.t .. ok t/97-return_values.t .......... 6/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Prereq::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1'
# Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Make::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 8/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Test::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 9/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Unsupported::OS' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 10/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Works::Fine' # at t/97-return_values.t line 49. # got: '2' # expected: '0' # Looks like you failed 5 tests of 10. t/97-return_values.t .......... Dubious, test returned 5 (wstat 1280, 0x500) Failed 5/10 subtests
Test Summary Report ------------------- t/30shell.t (Wstat: 65280 Tests: 150 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 223 tests but ran 150. t/41distribution.t (Wstat: 1024 Tests: 19 Failed: 4) Failed tests: 14, 16-17, 19 Non-zero exit status: 4 t/97-return_values.t (Wstat: 1280 Tests: 10 Failed: 5) Failed tests: 6-10 Non-zero exit status: 5 Files=30, Tests=595, 259 wallclock secs ( 0.27 usr 0.02 sys + 14.40 cusr 1.11 csys = 15.80 CPU) Result: FAIL Failed 3/30 test programs. 9/595 subtests failed. make: *** [test_dynamic] Error 5 ANDK/CPAN-2.10.tar.gz one dependency not OK (CPAN::Meta::Requirements); additionally test harness failed /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ANDK/CPAN-2.10.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ANDK/CPAN-2.10.tar.gz : make_test NO one dependency not OK (CPAN::Meta::Requirements); additionally test harness failed <end>
Any ideas how I can resolve this?
Thank you,
James
It's not a good idea to update CPAN and/or install modules from CPAN into the OS-installed perl. Use rpm packages from yum. Many can be found in the standard CentOS repo and EPEL has many as well. Take a look at perlbrew if you really need a new version of perl for some reason. If you don't really need the new version, don't update it.
❧ Brian Mathis @orev
On Mon, Jun 29, 2015 at 5:08 PM, James D. Parra jamesp@musicreports.com wrote:
Hello List,
Running CentOS Linux release 7.0.1406 (Core), and trying to update CPAN from version 1.98 to version 2.10, but it fails.
<snip> t/97-process_setup_options.t .. ok t/97-return_values.t .......... 6/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Prereq::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1'
# Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Make::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 8/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Test::Fails' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 9/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Unsupported::OS' # at t/97-return_values.t line 49. # got: '2' # expected: '1' t/97-return_values.t .......... 10/10 # Failed test 'blib/script/cpan -j t/97-lib_cpan1/CPAN/Config.pm Local::Works::Fine' # at t/97-return_values.t line 49. # got: '2' # expected: '0' # Looks like you failed 5 tests of 10. t/97-return_values.t .......... Dubious, test returned 5 (wstat 1280, 0x500) Failed 5/10 subtests
Test Summary Report
t/30shell.t (Wstat: 65280 Tests: 150 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 223 tests but ran 150. t/41distribution.t (Wstat: 1024 Tests: 19 Failed: 4) Failed tests: 14, 16-17, 19 Non-zero exit status: 4 t/97-return_values.t (Wstat: 1280 Tests: 10 Failed: 5) Failed tests: 6-10 Non-zero exit status: 5 Files=30, Tests=595, 259 wallclock secs ( 0.27 usr 0.02 sys + 14.40 cusr 1.11 csys = 15.80 CPU) Result: FAIL Failed 3/30 test programs. 9/595 subtests failed. make: *** [test_dynamic] Error 5 ANDK/CPAN-2.10.tar.gz one dependency not OK (CPAN::Meta::Requirements); additionally test harness failed /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ANDK/CPAN-2.10.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ANDK/CPAN-2.10.tar.gz : make_test NO one dependency not OK (CPAN::Meta::Requirements); additionally test harness failed
<end>
Any ideas how I can resolve this?
Thank you,
James _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CPAN is a core module which can be tricky to update on the RedHat based systems.
Suggest investigating:
local::lib App::cpanminus Pinto
If you need a newer Perl, check out www.softwarecollections.org.
Thank you Kahlil for your reply.
I made few perl changes, uninstalled CPAN, removed the .cpan dir, and reinstalled, and ran 'install CPAN' and everything looked much better. That is, no failures. The last part of the output was;
<snip> t/97-mock.t ................... ok t/97-process_options.t ........ ok t/97-process_setup_options.t .. ok t/97-return_values.t .......... ok All tests successful. Files=30, Tests=815, 79 wallclock secs ( 0.55 usr 0.04 sys + 57.45 cusr 6.75 csys = 64.79 CPU) Result: PASS ANDK/CPAN-2.10.tar.gz /usr/bin/make test -- OK Running make install Appending installation info to /root/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod ANDK/CPAN-2.10.tar.gz /usr/bin/make install -- OK <end>
And that's it. Ran reload CPAN and it still shows v 1.98. Getting much closer? Any ideas?
Thanks again,
James
----- Original Message ----- From: "Kahlil Hodgson" kahlil.hodgson@dealmax.com.au To: "CentOS mailing list" centos@centos.org Sent: Monday, June 29, 2015 4:49:05 PM Subject: Re: [CentOS] CPAN issues
CPAN is a core module which can be tricky to update on the RedHat based systems.
Suggest investigating:
local::lib App::cpanminus Pinto
If you need a newer Perl, check out www.softwarecollections.org. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
From what I can see there you are running cpan as root and installing it under a local lib /root/perl5. The new cpan executable is is under /root/perl5/bin/. Thats probably not in your path? Also the modules under /root/perl5/lib/perl5 are probably not in your module search path.
There is a lot of what your are doing here that is either unsafe or unwise.
Before we go into that, could we step back a bit and discus your environment and what you are trying to achieve. Specifically, why you feel the need to upgrade CPAN at a system level? There may be a better way to solve the underlying issue.
Cheers,
K