Link to home
Start Free TrialLog in
Avatar of spreq
spreqFlag for Afghanistan

asked on

upgrade PERL

Hi all,
I just upgrade PERL from 5.005 to 5.82 on sparc solaris 8.
I download the PERL from www.sunfreeware.com and use this 2 command for
installation:
 i) gunzip -d perl....gz
 ii) pkgadd -d perl....

the installation succeed, but when i reboot and check the current perl using perl -V and perl -v,
it still using the perl 5.005 instead of the new perl.
 the old perl is at /usr/bin/perl
and the new one at /usr/local/bin/perl

my question is..
what/where should i change to change to new perl

tq.
Avatar of gripe
gripe

You can either set your PATH environment variable to check /usr/local/bin first like this:

export PATH=/usr/local/bin:$PATH

(You may want to add that to your profile)

Or you can create an alias that points to the new Perl:

alias perl='/usr/local/bin/perl'

(Also may go in your .profile (Or system wide /etc/profile)
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do NOT damage/destroy the old Perl!!!!!!!!!!!!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial