Wednesday, July 6, 2011

perl cpan "recursive dependency detected"

Using the CPAN shell for the first time on a new server, after install Bundle::CPAN" and then "reload cpan", on the next install I got:

Recursive dependency detected:
    Bundle::CPAN
 => ExtUtils::MakeMaker
 => M/MS/MSCHWERN/ExtUtils-MakeMaker-6.56.tar.gz
 => File::Spec
 => S/SM/SMUELLER/PathTools-3.33.tar.gz
 => File::Path
 => D/DL/DLAND/File-Path-2.08.tar.gz
 => File::Spec.
Cannot continue.

in the perl cpan installer. Alas! I thought. Will I have to install the old-fashioned way? Indeed no! This may just be a sign that you need to "install Bundle::CPAN" and then "reload cpan".

But I just did that, damn it! Apparently, "reload cpan" isn't always completely effective after "install Bundle::CPAN". If you encounter this error, try quitting cpan and reloading.

Proof yet again that almost all tech problems can be solved by restarting the (whatever).

Btw, if you're not using the CPAN shell, use perl -MCPAN -e 'install( q{Bundle::CPAN} )' to install/update the cpan bundle.

2 comments:

  1. I ran into this same problem on OS X 10.5.8, but unfortunately reloading/reinstalling CPAN did not fix the problem. Now I get the following:


    cpan[1]> install Bundle::CPAN
    Reading '/Users/gross/.cpan/Metadata'
    Database was generated on Wed, 14 Oct 2015 17:53:25 GMT
    Running install for module 'ExtUtils::MakeMaker'
    Checksum for /Users/gross/.cpan/sources/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.10.tar.gz ok
    Scanning cache /Users/gross/.cpan/build for sizes
    ............................................................................DONE
    Removing previously used /Users/gross/.cpan/build/ExtUtils-MakeMaker-7.10
    Catching error: "CPAN::Meta::Requirements not available at /Library/Perl/Updates/5.8.8/CPAN/Distribution.pm line 2791.\cJ" at /Library/Perl/Updates/5.8.8/CPAN.pm line 392.
    CPAN::shell() called at /usr/bin/cpan line 193

    ReplyDelete
    Replies
    1. Hey there. I haven't experienced this error before, but did you try:

      cpan install CPAN::Meta::Requirements

      ? That might fix it for you. Good luck!

      Delete

Note: Only a member of this blog may post a comment.