in reply to Installing/Upgrading 5.8.8 to 5.12.1
First use rpm -e --nodeps when removing Perl. This will remove the now-damaged Perl without breaking the rest of your system.
Immediately reinstall the base system's Perl pachage, even if it's 5.10 or even 5.8.
In the /usr/lib/perl5 directory, you can remove any 5.x directories that don't match the Perl you just reinstalled, along with anything in /usr/lib/perl5/site_perl that doesn't match your current Perl version.
You can now kill off any other Perl builds you did (in /opt, /usr/local, etc.). Anything that isn't an already-existing path under RH can be removed wholesale (I believe /opt/local falls under that heading); anything that was there before will require careful surgery. The /usr/local one will probably be the most trouble, as there'll be a bunch of scripts installed allong with Perl that end up in /usr/local/bin.
Your best bet after the system Perl is restored and you've built a new one elsewhere is to check the new bin directory and clean out anything that's in there that's also in /usr/local/bin. /usr/local/lib can be handled like the /usr/lib example above, except that any version of Perl you spot in there can go. You may at this point have some leftovers, but they shouldn't cause you any problems.
I highly recommend that you simply ignore the system Perl altogether and do everything via the one you install. Use CPAN with that one to install modules. If for any reason you simply must diddle with the system Perl, only use yum and RPMs; do not use CPAN there, as it will confuse things when it comes to trying to install stuff via RPM. The cpanspec package is useful if you decide that you have loads of time to waste and you want to build your own RPM-based packages (I don't recommend this, if you can't guess!).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Installing/Upgrading 5.8.8 to 5.12.1
by proceng (Scribe) on Aug 04, 2010 at 04:43 UTC |