Re: [SLUG] Perl upgrading

2006-05-19 Thread Scott Ragen
[EMAIL PROTECTED] wrote on 05/19/2006 01:20:36 AM:

> whilst looking where to install 'new' Perl, I've discovered that I've
> already installed it some time ago:
> ---
> # whereis perl
> perl: /usr/bin/perl /usr/local/bin/perl /usr/share/man/man1/perl.1.gz
> 
> # /usr/bin/perl --version
> This is perl, v5.6.1 built for i386-linux
> 
> # /usr/local/bin/perl --version
> This is perl, v5.8.6 built for i686-linux-thread-multi
> 
> ---
> 
> for some reason, it seems I stopped or whatever
> 
> so, just to confirm:
> 
> I leave my 'old' perl for any system stuff 'as is';
> any new perl scripts I install, I edit the '#!' to point at the 'new' 
perl;

I take it /usr/local/bin/perl is a symlink to /usr/local/bin/perl5.8.1?
If this is the case, I would suggest removing /usr/local/bin/perl, and 
reference the new version as /usr/local/bin/perl5.8.1
This will save any confusion if something goes wrong due to $PATH orders 
etc.

> 
> and , everyone is happy, and, I have current perl
> 
> now, what about all these CPAN libraries that I need from time to time:
> 
> do I need to install one for each version ? or, how do I handle that ?
> 
Yes, you will mostly need to installed modules them for each version.
You can simply 'perl -MCPAN -e shell' (for current perl)
and 'perl5.8.1 -MCPAN -e shell' (for new perl)

Cheers,

Scott
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl upgrading

2006-05-18 Thread Voytek Eymont

On Wed, May 17, 2006 9:39 am, Matthew Hannigan wrote:
> On Wed, May 17, 2006 at 09:11:35AM +1000, Voytek Eymont wrote:

> I think it's been said before, but why not
> just update the entire os?  i.e. install fedora5 or whatever.

yes, I'll look at that
but, it's not that simple, for a number of reasons (many imaginary)

> It's probably impossible to remove perl5.6.1;
> some system stuff is probably dependent on it.
> You can add another perl in say, /opt or /usr/local...

On Wed, May 17, 2006 10:06 am, Scott Ragen wrote:

> You should be able to safely install the latest perl from source without
> breaking the current version, or any OS dependancies, providing you keep
> /usr/bin/perl pointing to /usr/bin/perl5.6.1.
> To then use the latest version, just put #!/usr/bin/perl5.8.1 (for
> example) in your scripts. Call perl5.8.1 for any debugging, or installing
> modules etc.

thanks, Scott, Matt

whilst looking where to install 'new' Perl, I've discovered that I've
already installed it some time ago:
---
# whereis perl
perl: /usr/bin/perl /usr/local/bin/perl /usr/share/man/man1/perl.1.gz

# /usr/bin/perl --version
This is perl, v5.6.1 built for i386-linux

# /usr/local/bin/perl --version
This is perl, v5.8.6 built for i686-linux-thread-multi

---

for some reason, it seems I stopped or whatever

so, just to confirm:

I leave my 'old' perl for any system stuff 'as is';
any new perl scripts I install, I edit the '#!' to point at the 'new' perl;

and , everyone is happy, and, I have current perl

now, what about all these CPAN libraries that I need from time to time:

do I need to install one for each version ? or, how do I handle that ?

many thanks again




-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl upgrading

2006-05-16 Thread Scott Ragen
[EMAIL PROTECTED] wrote on 17/05/2006 09:11:35 AM:

> 
> I currently have 'perl, v5.6.1 built for i386-linux' on RH73
> 
> what's my best way to bring it up to date ?
> and bring modules up to date ?
> 
My experience has been that each perl version installs in its own 
directory, and has its own binaries etc.
eg, perl 5.6.1 could be installed in /usr/perl/5.6.1
The binary is /usr/bin/perl5.6.1 (and /usr/bin/perl is symlinked to it).

You should be able to safely install the latest perl from source without 
breaking the current version, or any OS dependancies, providing you keep 
/usr/bin/perl pointing to /usr/bin/perl5.6.1.
To then use the latest version, just put #!/usr/bin/perl5.8.1 (for 
example) in your scripts.
Call perl5.8.1 for any debugging, or installing modules etc.

Cheers,

Scott
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Perl upgrading

2006-05-16 Thread Matthew Hannigan
On Wed, May 17, 2006 at 09:11:35AM +1000, Voytek Eymont wrote:
> 
> I currently have 'perl, v5.6.1 built for i386-linux' on RH73
> 
> what's my best way to bring it up to date ?

I think it's been said before, but why not
just update the entire os?  i.e. install fedora5
or whatever.

It's probably impossible to remove perl5.6.1;
some system stuff is probably dependent on it.

You can add another perl in say, /opt or /usr/local...


Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Perl upgrading

2006-05-16 Thread Voytek Eymont

I currently have 'perl, v5.6.1 built for i386-linux' on RH73

what's my best way to bring it up to date ?
and bring modules up to date ?

thanks

-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html