You are not logged in.

#1 2013-05-28 15:44:24

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Perl 5.18 can't run CPAN

After the update to Perl 5.18 I can not run any cpan clients, I tried both CPAN and CPANPLUS as they both are included in the core perl distribution.

When launching CPAN:

Perl API version v5.16.0 of IO does not match v5.18.0 at /usr/share/perl5/core_perl/XSLoader.pm line 92.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Handle.pm line 269.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Handle.pm line 269.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Seekable.pm line 101.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/File.pm line 133.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/File.pm line 133.
Compilation failed in require at /usr/share/perl5/core_perl/FileHandle.pm line 9.
Compilation failed in require at /usr/share/perl5/core_perl/CPAN.pm line 54.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/CPAN.pm line 54.
Compilation failed in require at /usr/share/perl5/core_perl/App/Cpan.pm line 218.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/App/Cpan.pm line 218.
Compilation failed in require at /usr/bin/site_perl/cpan line 10.
BEGIN failed--compilation aborted at /usr/bin/site_perl/cpan line 10.

When launching CPANPLUS:

Perl API version v5.16.0 of IO does not match v5.18.0 at /usr/share/perl5/core_perl/XSLoader.pm line 92.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Handle.pm line 269.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Handle.pm line 269.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/Seekable.pm line 101.
Compilation failed in require at /usr/lib/perl5/core_perl/IO/File.pm line 133.
BEGIN failed--compilation aborted at /usr/lib/perl5/core_perl/IO/File.pm line 133.
Compilation failed in require at /usr/share/perl5/core_perl/FileHandle.pm line 9.
Compilation failed in require at /usr/share/perl5/core_perl/Log/Message/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/Log/Message/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/core_perl/Log/Message.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/Log/Message.pm line 8.
Compilation failed in require at /usr/share/perl5/core_perl/CPANPLUS/Error.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/CPANPLUS/Error.pm line 8.
Compilation failed in require at /usr/share/perl5/core_perl/CPANPLUS.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/CPANPLUS.pm line 7.
Compilation failed in require at /usr/bin/site_perl/cpanp line 11.
BEGIN failed--compilation aborted at /usr/bin/site_perl/cpanp line 11.

The odd part is it is core modules that is out of date, the interpreter does not seem to be affected too badly, I can get it to spit out version info:

This is perl 5, version 18, subversion 0 (v5.18.0) built for x86_64-linux-thread-multi

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Offline

#2 2013-05-28 16:31:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Perl 5.18 can't run CPAN

Offline

#3 2013-05-28 18:26:41

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Re: Perl 5.18 can't run CPAN

Similar, but to rule out third party modules being the issue I removed the contents of /usr/share/perl5, and reinstalled perl 5.18 so the only modules I had are those that ship in the perl package before reporting.

Offline

#4 2013-05-28 19:19:48

LarryBrasfield
Member
Registered: 2013-05-28
Posts: 3

Re: Perl 5.18 can't run CPAN

Is there a known way to fix this?  The list of packages requiring perl is daunting.  Removing and reinstalling perl-5.18 does not work.  Eliminating (or hiding) the various site_perl directories does not help.

I notice that on a VM running archlinux x86_64, where cpan had not yet been run, that it can at least run instead of erring out with "Attempt to reload Scalar/Util.pm aborted." etc.

I'm somewhat up the brown creek on this, having used cpan-provided modules for a number of system utilities.

Offline

#5 2013-05-29 14:35:16

chylli
Member
Registered: 2013-05-27
Posts: 2

Re: Perl 5.18 can't run CPAN

same problem here

Offline

#6 2013-05-30 00:06:01

LarryBrasfield
Member
Registered: 2013-05-28
Posts: 3

Re: Perl 5.18 can't run CPAN

It's brutal, but here is one way to fix it.  (I was willing to do this because I'm on the verge of rebuilding the server on which this issue arose.)

Caution: Before doing this, commit to reinstalling perl at a minimum because a number of base ARCH packages rely upon its presence.

As root, in a CLI shell:
  cd /usr/share/     
  rm -rf perl5     
  cd /usr/bin     
  rm -rf core_perl perl vendor_perl site_perl     
  cd /usr/lib     
  rm -rf perl5       
  pacman -Su perl

Then, invoke cpan and 'install ...' where '...' is whatever modules induced use of cpan before the upgrade to Perl 5.18 broke it.  As an aside, it appears to me that some CPAN modules in the DBD:: tree no longer install successfully without force due to compile errors and/or some warnings that have become errors in Perl 5.18.  (This is not the forum for details or a bug report, so this is just a bare warning.)

Note that this does not cure the problem with the update from Perl 5.16; it just effectively starts over, allowing cpan to work as well as it does when the Perl developers and (many) CPAN developers got happy with 5.18.

Last edited by LarryBrasfield (2013-05-30 00:07:32)

Offline

#7 2013-05-30 01:24:08

vendion
Member
From: Tennessee, USA
Registered: 2010-03-10
Posts: 204
Website

Re: Perl 5.18 can't run CPAN

I did not think about removing the directories under /usr/bin and /usr/lib as well, after doing that and reinstalling Perl I can confirm everything works afterwards.

Offline

Board footer

Powered by FluxBB