Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

What Just Happened to my CPAN Shell?

by rjray (Chaplain)
on Jan 30, 2008 at 04:30 UTC ( [id://665058]=perlquestion: print w/replies, xml ) Need Help??

rjray has asked for the wisdom of the Perl Monks concerning the following question:

Something detonated my CPAN shell between successive runs. Now, when I try to install a new module, I see this:

Installing Data::Dump::Streamer I can install a shortcut so you can use the package 'DDS' as though it was 'Data::Dump::Streamer'. This is handy for oneliners. *Note* that if you select 'no' below and you already have it installed then it will be removed. Would you like me to install the shortcut? (yes/no) [no] Checking if your kit is complete... Looks good Warning: PERL_LIB (/usr/share/perl/5.8) seems not to be a perl library + directory (Exporter.pm not found) at /usr/local/share/perl/5.8.8/ExtUtil +s/MM_Unix.pm line 1727. Writing Makefile for Data::Dump::Streamer 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/users/rjray) 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/local/bin/cpan line 198

I don't suppose anyone else has seen this? I don't relish going diving in search of the cause of this...

(Things like this make me wish there were a section on PM for "WTF?")

Update: Fixed formatting of code snippet

--rjray

Replies are listed 'Best First'.
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.)

      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...

      --rjray

      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.

      --rjray

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.

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/per­l/5.8.8/CP­AN.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).

    - tye        

      I didn't look up the code itself, because I was hoping someone else might have seen the same thing (which it looks like they have, from an earlier comment). The CPAN is version 1.9205.

      --rjray

        I get the same error:
        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.
Re: What Just Happened to my CPAN Shell?
by haoess (Curate) on Feb 05, 2008 at 08:48 UTC
      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...
        Safe-2.15 fixed it on my machine. Thanks!
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

      I can report that after upgrading to Safe 2.14 that the problem still exists, as per my previous description.

        Latest (the fixed one) Safe is 2.15 (should hit your favourite CPAN mirror soon).

        -- Frank

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://665058]
Approved by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-19 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found