Operating System - HP-UX
1832339 Members
2399 Online
110041 Solutions
New Discussion

Perl64 installed, but old version still recognized..

 
SOLVED
Go to solution
Patrick Ware_1
Super Advisor

Perl64 installed, but old version still recognized..

Well, I just installed procura's pre-built perl-5.8.4-gcc-3.4.0-11.11-elf64.tbz. My question is what is the best way of getting the the new instlled version recognized by path over the old one? I added /opt/perl64/bin to the /etc/PATH file, but when I type in

# perl -v

The old version 5.6.1 shows up instead of the new one. Would removing all the old references to the old version in the /etc/PATH file do what I need? Help a noob out please. :)

6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Perl64 installed, but old version still recognized..

Check the following variables:

PATH
SHLIB_PATH

More than likely when you go perl -v the search path is finding the older version first.

Simply installing Merijn's program does not make the old one go away.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor
Solution

Re: Perl64 installed, but old version still recognized..

Hi Patrick,

Could be the PATH variable is being set in the users $HOME/.profile.

check the output from

# env
# whereis perl
# whence perl

or add the /opt/perl64/bin in the beginning of your PATH variable.

Hope this helps,
Robert-Jan
H.Merijn Brand (procura
Honored Contributor

Re: Perl64 installed, but old version still recognized..

The path to the perl you want to use should be *before* the path where other perl's can be found

# export PATH=/opt/perl64/bin:$PATH

BTW why 5.8.4 and not 5.8.5 or 5.8.6?

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Patrick Ware_1
Super Advisor

Re: Perl64 installed, but old version still recognized..

Then I guess I can do the following temp sym link until we are sure the users are ready for the new version:

/root
# ll /usr/bin/perl
lrwxr-xr-x 1 root sys 18 Aug 24 14:52 /usr/bin/perl -> /opt/perl/bin/perl

/root
# ln -s /opt/perl64/bin/perl /usr/bin/perl64

/root
# perl64 -v

This is perl, v5.8.5 built for PA-RISC2.0-LP64
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
Patrick Ware_1
Super Advisor

Re: Perl64 installed, but old version still recognized..

Well, the funny thing procura is when I do the version:

#perl -v

It tells me I have perl 5.8.5 installed. I know I clicked the link for the 5.8.4. Oh well, it works out anyway. :D
H.Merijn Brand (procura
Honored Contributor

Re: Perl64 installed, but old version still recognized..

Then you might have fetched it the first two hours after it became available, because I had to change a name.

Whatever, happy to see it works!

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn