- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Wrong perl version
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 12:08 AM
тАО01-09-2006 12:08 AM
On a "HP-UX iron B.11.11 U 9000/800" server when I type perl -v I get the following message:
This is perl, version 5.005_02 built for PA-RISC1.1 ,etc...
When I do /opt/OV/contrib/perl/bin/perl -v I get the following message:
This is perl, v5.6.1 built for PA-RISC2.0-thread-multi
This is the version 5.6.1 I want. When I do swlist|grep -i perl I get:
perl B.5.6.1.F Perl Programming Language
This is the right version.
- How do I remove the old version 5.005_02?
- When I type perl -v I want to see and use the newer version 5.6.1.
Thanks in advance,
Erwin
Solved! Go to Solution.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 12:10 AM
тАО01-09-2006 12:10 AM
Re: Wrong perl version
After loading the latest Perl version, you will need to rename a file and create a link.
mv /usr/contrib/bin/perl /usr/contrib/bin/perl.old
ln -s /opt/perl/bin/perl /usr/contrib/bin/perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 12:14 AM
тАО01-09-2006 12:14 AM
Re: Wrong perl version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 12:19 AM
тАО01-09-2006 12:19 AM
Re: Wrong perl version
The most recent version of perl in the 5.6.x track is 5.6.2, and the most recent stable is 5.8.7 (with 5.8.8 to be expected in the next couple of weeks)
It might be very worthwhile to consider an upgrade anyway.
FWIW the 5.6.1 version that was shipped with OV does most likely not include all the modules you need, and it is thinkable that new modules won't build against it, since the main reason for 5.6.2 to be released was to have it up to date with more recent operating systems.
Furthermore, the 5.6.x builds are unable to use binary modules from the 5.005_xx branche, since these are binary incompatible.
Fetch 5.8.7 from:
http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.7/
or from my HP ITRC site pages (please use LA as primary choice):
USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2006 08:02 AM
тАО01-11-2006 08:02 AM
Re: Wrong perl version
There are a couple of approaches to correcting this. First find out which perl your running using the "which" command. Then you can either move that path to a location after the path to the perl you want, but you will have to do that for every user who uses this version of perl. Or. You can rename the file to perl.old or something along those lines and then see "which" perl is found next till you get the correct one. Or. You could rename the file and create a symbolic link from perl in that directory to the correct one. Or. You could add an alias in your profile where perl=/yourpath/bin/perl and let the shell take it from there. Or. You could specify which perl you would like to run in the script its self using the #!/yourpath/bin/perl as the first line of each script.
Personally, I would rename the old perl and any other perl executables till except "the one" and also specify the path on the first line of the scripts.
That's the beauty of Unix though, you can approach it how ever you want.
H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2006 10:50 PM
тАО01-11-2006 10:50 PM