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

Hi, I recently deleted a local perl and cpan version on my server. (I wanted everyone to be using the same perl and cpan.) After I did that I started having a problem where if I type
ionadmin@ion-torrent-server:/usr/share$ cpan -bash: /usr/local/bin/cpan: No such file or directory
This makes since, since I just deleted it, but why isn't it finding the system cpan? (/usr/bin/cpan) What's strange to me is if I type
ionadmin@ion-torrent-server:/usr/share$ perl -MCPAN -e shell Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v2.00) Enter 'h' for help. cpan[1]> exit
it works just fine. How can I access the interactive mode by typing just "cpan"? How can I get cpan to locate itself at /usr/bin/cpan?
ionadmin@ion-torrent-server:/usr/bin$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game +s

Replies are listed 'Best First'.
Re: interactive mode cpan. "cpan" doesn't work. "perl -MCPAN -e shell" does
by Anonymous Monk on Feb 12, 2014 at 18:40 UTC

    What?

    Its simple, delete the existing cpan file, and re-install CPAN

      haha really?
        Thanks, sorry. It seemed complicated. Need to take a break.