The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Packages installations on my servor MasterapocA SUN Solaris 4 03-18-2008 06:16 AM
Securing Joomla! installations iBot UNIX and Linux RSS News 0 01-03-2008 02:50 AM
find command to detect installations goldenglobe UNIX for Dummies Questions & Answers 2 06-13-2007 07:06 AM
external dvdrw installations chlawren Linux 0 03-28-2007 07:23 AM
Network Installations of Solaris BeekerC SUN Solaris 1 05-21-2005 10:17 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2007
Registered User
 

Join Date: Dec 2005
Posts: 7
Multiple Perl installations on HP-UX

This will undoubtedly seem like a problem that should be easily resolved but...

We are having some 'issues' getting multiple versions of Perl installed on our HP-UX servers (11.11 & 11.23). Now, I'm not a Sys Admin but I believe the reason behind this is that the Perl installation which comes from the HP Porting center does not let you choose the installation directory, it always installs to /usr/local overwriting any current installation.

I've already suggested building Perl from source, or using an alternative binary HP build (not supplied by HP), but they are reluctant to do either as they want a kosher HP version (no, I don't know why either!). So here's my questions:

1. Is there any way to force the HP binary build to install to another directory?
2. I know you can't simply move a Perl installation to another directory, but is there any easy way to move and then reconfigure?

If the answer to both the above is no, that's fine, I really just want someone to confirm either way...

Any help much appreciated.
Macer.
Reply With Quote
Forum Sponsor
  #2  
Old 02-26-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
To relocate a perl installation...

1) Move perl executables (perl, perldoc, etc) and it's libraries to, e.g., /new/directory/bin and /new/directory/lib

2) write a wrapper which sets PERL5LIB to, e.g.,
"/new/directory/lib/5.8.4:/new/directory/lib/site_perl" (+ any custom lib directories).
for earlier versions, you may have to add additional directories, but this version
will find all necessary default directories with just the above two directories.
Have the wrapper execute the real perl executable with all of the original arguments:
unshift @ARGV, $^X;
exec { $ARGV[0] } @ARGV;

3) adjust the "#!" line in all of the other executables (e.g. perldoc) to point to the
correct perl executable.

4) In the Config.pm module, change the scriptdirexp directory to point to the new
executable directory /new/directory/bin (otherwise things like perldoc will not work).

Good Luck!

Last edited by Runrig; 02-26-2008 at 04:46 PM.
Reply With Quote
  #3  
Old 03-03-2008
Registered User
 

Join Date: Dec 2005
Posts: 7
Thanks Runrig... I'll give this a try (although it probably won't be this week!) and let you know how I get on. Much appreciated.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0