Re: What Just Happened to my CPAN Shell?
by ysth (Canon) on Jan 30, 2008 at 05:33 UTC
|
How are you running cpan? perl -MCPAN? A script named cpan? In either case,
which perl is it actually using, and did that somehow change?
Does /usr/share/perl/5.8 actually exist (it's probably a symlink to /usr/share/perl/5.8.8), and if so, does it contain Exporter.pm?
What modules did you recently install? (You can check perldoc perllocal to see.)
| [reply] [Watch: Dir/Any] |
|
Interestingly, installing Data::Dump::Streamer from its build directory (i.e., outside of the CPAN shell) worked fine, and installing other modules works fine as well. It would seem that there is/was something in the Makefile.PL for that module that interfered with CPAN...
| [reply] [Watch: Dir/Any] |
|
No, this is just the stock perl in Ubuntu. I'm calling cpan using the simple shell front-end that it installs. And you're correct that /usr/share/perl/5.8 is a symlink to /usr/share/perl/5.8.8.
The last set of modules I'd installed in the run prior to this were AnyEvent, Config::Any, Module::CPANTS::Analyse, Module::ScanDeps and Safe. I think I'll try to roll back the Module::ScanDeps change, since that's the only one I can think of that would interfere with CPAN.
| [reply] [Watch: Dir/Any] |
Re: What Just Happened to my CPAN Shell?
by haoess (Curate) on Jan 30, 2008 at 08:42 UTC
|
I don't suppose anyone else has seen this?
Me too (kind of):
Catalyst::Plugin::DBIC::Schema::Profiler::DebugObj undef 0.02
+ YAMAMOTO/Catalyst-Plugin-DBIC-Schema-Profiler-0.02.tar.gz
Use of inherited AUTOLOAD for non-method main::version::(""() is depre
+cated at /usr/local/share/perl/5.8.8/CPAN.pm line 10254.
Catching error: 'Can\'t locate auto/main/version/("".al in @INC (@INC
+contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5
+.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/per
+l/5.8 /usr/local/lib/site_perl /home/fw) at /usr/local/share/perl/5.8
+.8/CPAN.pm line 10254
' at /usr/local/share/perl/5.8.8/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 193
I'm going to ask Andreas König (CPAN.pm's Maintainer) today at Berlin.pm about this.
-- Frank
Update: I filled a bugreport against Safe.pm. We'll see. | [reply] [Watch: Dir/Any] [d/l] |
Re: What Just Happened to my CPAN Shell? (source?)
by tye (Sage) on Jan 30, 2008 at 16:53 UTC
|
Did you look at "/usr/local/share/perl/5.8.8/CPAN.pm line 10254", because the CPAN.pm that comes with Perl 5.8.8 doesn't have near that many lines (as shipped). Line 281 of that same file doesn't seem to match so you've probably upgraded CPAN.pm and should tell us what version you are using (as well as look at it).
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
Use of inherited AUTOLOAD for non-method main::version::(""() is depre
+cated at /usr/local/share/perl/5.8.8/CPAN.pm line 10254.
Catching error: 'Can\'t locate auto/main/version/("".al in @INC (@INC
+contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5
+.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/per
+l/5.8 /usr/local/lib/site_perl /disk2/apache-2.0.59/conf) at /usr/loc
+al/share/perl/5.8.8/CPAN.pm line 10254
' at /usr/local/share/perl/5.8.8/CPAN.pm line 281
CPAN::shell() called at -e line 1
I just upgraded a bunch of modules on a box being prepared for production use. CPAN.pm is now 1.9205, and ExtUtils::MakeMaker is now 6.42 (both were upgraded, and one or both is contributing to the problem).
Using the CPAN shell, I can list the modules needing upgrading, and then upgrade one module. Any subsequent upgrades or lists of upgrades fail with the above error. If I exit the shell and restart it, I can perform the next upgrade. Installation of modules seems to be okay, until an upgrade takes place, and then installation fails too.
| [reply] [Watch: Dir/Any] [d/l] |
|
Re: What Just Happened to my CPAN Shell?
by haoess (Curate) on Feb 05, 2008 at 08:48 UTC
|
| [reply] [Watch: Dir/Any] |
|
I see it with my own build of Perl 5.8.8 on Mac OS X, with CPAN 1.9205.
Whatever caused this happened since Jan 25th - I think it may be related to an empty /usr/local/lib/perl5/5.8.8/darwin-2level/auto/CPAN folder, or else something to do with a bunch of CPAN::Test::Dummy::Perl5::Make prereqs not found.
Hoping for a new CPAN to fix this...
| [reply] [Watch: Dir/Any] |
|
Safe-2.15 fixed it on my machine. Thanks!
| [reply] [Watch: Dir/Any] |
Re: What Just Happened to my CPAN Shell?
by haoess (Curate) on Feb 06, 2008 at 15:45 UTC
|
Rafaël++ just uploaded a new version of Safe. You should grab it from CPAN and this annoying problem should go away.
-- Frank
| [reply] [Watch: Dir/Any] |
|
I can report that after upgrading to Safe 2.14 that the problem still exists, as per my previous description.
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
|
|