Hi Bruce,

While in CPAN, did you tell it to install Bundle::CPAN to upgrade CPAN to the 
latest version?

If you did, CPAN would have upgraded everything else inside the CPAN bundle - 
including perl itself.  This it puts in the default place if 
/usr/local/bin/perl.  Your problem (and mine) is that RedHat put perl in 
/usr/bin/perl and symlink it /usr/local/bin/perl, which is why you end up 
with two version.

The way I fixed it was to delete /usr/bin/perl and then so as not to break 
any scripts that needed it I created /usr/bin/perl as a symlink to 
/usr/local/bin/perl so that if CPAN upgraded again, both links would be 
affected.

Bear in mind that if your module tree is version specific (i.e. @INC has the 
version number in the paths) which is the norm, you may lose some modules.  
You should use CPAN to re-install these missing modules.

Gary

On Sunday 01 July 2001 12:23 am, Bruce D. Meyer wrote:
> O posted this a few days ago, no response. Hopefully one of the super
> guru's has a clue with this. I have updated via MCPAN several times, but
> only 5.6.1 has started this happening it seems. Here is the original
> posting:
>
>
> On two machines now, I have run"
> perl -MCPAN -e shell
>
> (RedHat 7.1, and RedHat 6.2)
>
> when I query:
> which perl
>
> I get:
> /usr/local/bin/perl
>
> when I run:
>
> find / -name perl
>
> I get (among some other stuff)
>
> /usr/local/bin/perl
> /usr/bin/perl
>
>
> Executing:
>
> /usr/local/bin/perl -V
>
> gives:
>
> perl 5.6.1 (I won't type in all the details, it's about a page and a half)
>
> Entering:
> .usr/bin/perl -V
>
> returns:
>
> perl 5.6.0
>
> I really would prefer that when I update everything with MCPAN that it
> overwrites my old perl with the new install. What are the error of my ways?
>
> Thanks for creating a group for us JAPN's. (JAP-Newbies)
>
> Bruce Meyer

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     

Reply via email to