in reply to Can't get CPAN to install anything

Try starting cpan with  perl -MCPAN -e shell because the first "cpan" in your path (which -a cpan) might have the wrong shebang

Replies are listed 'Best First'.
Re^2: Can't get CPAN to install anything (perl -MCPAN -e shell)
by syphilis (Archbishop) on Feb 12, 2015 at 03:19 UTC
    Yes - there certainly seems to be something askew.
    I see five occurrences of:
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t
    and /usr/bin/perl doesn't look like the perl whose @INC was posted in the original post.

    Cheers,
    Rob
      Thank you both so much! I ran cpan as you suggested (perl -MCPAN -e shell) and without sudo at the beginning of the command (mostly because I forgot to put it there). This seemed to prompt it to reconfigure itself, as it gave me some setup dialogue when it started.

      With that change, it successfully installed LWP::Simple and Bundle::CPAN.

      Such a relief!

      THANK YOU! This has been making me insane for weeks. I'm so relieved. Thank you.