Web Hosting Talk







View Full Version : Perl Mishap


All4You
09-01-2000, 11:35 AM
The other day, I needed to install some perl modules such as LWP::Simple
I telnetted into my server, blah blah blah, and tried to use

perl -MCPAN -e shell;

to aid me in this.

When I ran that program, I was prompted that there was a newer stable version of Perl available, v5.6.0 an if I would like to install it.

I figured why not, and as the program tried to install it, asking me questions from time to time, I pointed it to install to the usr/local/bin directory (for usr/local/bin/perl)

The installation was not successful (various warnings: will not install without force), and I ran out of time that evening.

Well, last night I went to try and get some modules again, but now nothing wants to work, and I figured out that when I run...

perl -MCPAN -e shell;

.. it is pointing to /usr/local/bin/perl and not usr/bin/perl, where the older working version of perl is. (I figured this out by temporarilily renaming /usr/local/bin/perl to bobperl)

So, here is where I need help....

How do I remove Perl5.6.0? Im content with Perl5.005

How do I get perl -MCPAN -e shell; to run from /usr/bin/perl again instead of the new, notworking location?

- Robert Angle

ServerPronto
09-16-2011, 12:00 PM
Hello,

This shows you how to revert from v5.8 to 5.6.1, the concept is still the same:
http://forums.cpanel.net/f5/downgrade-perl-5-8-1-5-6-1-a-16722.html