Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How do I get to my new version of Perl

by dthacker (Deacon)
on Aug 28, 2001 at 06:31 UTC ( [id://108332]=perlquestion: print w/replies, xml ) Need Help??

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

I've had 5.005 installed on my Linux box for some time now. A few nights ago I attempted to install CPAN and must have "pushed the red button." A full blown download and compile of 5.6.1 was soon underway. Well, I told myself, at least you'll now have the latest and greatest. So I also downloaded and compiled version 2.4 of Template-Toolkit. Tonight I attempted the first example in my Template-Toolkit tutorial and recieved this error message:
Can't locate Template.pm in @INC (@INC contains: /usr/lib/perl5/5.005 +03/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i +386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/dthacker/tt/bin/ +tpage line 27. BEGIN failed--compilation aborted at /home/dthacker/tt/bin/tpage line +27.

I thought perhaps 5.6.1 didn't install.

Not so.

[dthacker@hagrid work]$ locate perl5.6.1 /usr/local/bin/perl5.6.1
I do have /usr/local/bin in my $PATH.

What do I do to see the new version and forget the old?

TIA

Dave

Replies are listed 'Best First'.
Re: How do I get to my new version of Perl
by mitd (Curate) on Aug 28, 2001 at 06:54 UTC
    A few extra add-ons to suggestions:

    which -a perl -- will show you all perls in your path
    then
    do /xxx/xxx/perl -v on each every path that which returns to confirm versions -V is even better to check perl libs location.

    mitd-Made in the Dark
    'My favourite colour appears to be grey.'

Re: How do I get to my new version of Perl
by rchiav (Deacon) on Aug 28, 2001 at 06:36 UTC
    where is your old binary of perl? ($ which perl)

    You can do a couple of things. One, specifically refrence the location of 5.6.1 binary in your script. Another would be to copy the old perl binary to some other name and then make a sym link to the 5.6.1 binary in the same location. This might have the effect of breaking some older scripts though. I'd be sure to test everything first before commiting to this.

    Hope this helps..
    Rich

      Speaking of scripts not working w/ 5.6.1...

      Apt-get seemed to stop working for me when I made /usr/bin/perl a symbolic link to to /usr/local/bin/perl.5.6.1

      I did other stuff that maybe wasn't such a good idea, stuff like mixing stable and unstable in /etc/sources.list This may not be relevant....


      --mandog

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://108332]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found