Multiple Perl installations on HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Multiple Perl installations on HP-UX
# 1  
Old 01-09-2007
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.
# 2  
Old 02-26-2008
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 07:46 PM..
# 3  
Old 03-03-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding all Oracle SW installations on a host

Hi. I'm trying to find the best way to locate the latest version of Oracle on a Linux host. There could be multiple SW installs or there could be none. It could be a client or a full RDBMS installation. I need to find and set the environment in order to run the sqlplus binary. Rather than just... (14 Replies)
Discussion started by: user052009
14 Replies

2. UNIX for Advanced & Expert Users

Isolated installations on a network location

Hi, I'm looking to have certain packages installed on a location on my network(lets call this mount point /software) in such a way that they can run needing anything from the local system. So that when any of my users does /software/bin/vlc or /software/bin/open-office or... (0 Replies)
Discussion started by: saurabhgupta2u
0 Replies

3. Windows & DOS: Issues & Discussions

Remove lately made installations in Cygwin

I have installed lots of packets to try emacs with X11 in Cygwin. How can I restore to the point before that installation, without have to search, select and remove every single package on my own? Is there a function to remove lately installations easily? (2 Replies)
Discussion started by: Menedas
2 Replies

4. AIX

Automated Patch Installations in AIX

Hi Guys, I'm looking out to make automation of AIX patch installation and Report Generation... ANy suggestions or idea's welcome (8 Replies)
Discussion started by: kkeng808
8 Replies

5. UNIX and Linux Applications

Configuring firefox for mass installations

We have been looking into the possibility of configuring firefox upon installation for a common desktop environment for all users. For instance we want the font to be sans-serif 12 points throughout (preferences menu item), a standard set of plugins to be installed (add ons menu item) and some... (3 Replies)
Discussion started by: figaro
3 Replies

6. Solaris

Packages installations on my servor

Hello everybody, I'd like to install several important packages on my servor like for instance, man pages package.. I found a .tar.gz package of man pages. So, after to do "gtar zxvf name_of_file.tar.gz" I can access on the folder "name_of_file" (by cd name_of_file). Then, I read on my readme... (4 Replies)
Discussion started by: MasterapocA
4 Replies

7. UNIX for Dummies Questions & Answers

find command to detect installations

Hi I'm wondering how I can find all the files which were installed on certain date? For example: I'm looking for alle the files which were installed on the 11.09.06 on the system. Does somebody know how to do this? Thanks Reto (2 Replies)
Discussion started by: goldenglobe
2 Replies

8. Linux

external dvdrw installations

Hello all, Please can someone assist? I am attempting to install an external dvdrw on fedora 6. I attach the dvdrw device to the USB port and run dmesg: scsi2 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 4 usb-storage: waiting for device to settle before... (0 Replies)
Discussion started by: chlawren
0 Replies

9. Solaris

Network Installations of Solaris

First off, I'm pretty new to Solaris, although I know Windows very well. I have a mixed Wintel, Linux and SPARC/Solaris environment and am looknig for a way to make short work of installing Solaris. I know there is a network booting option and there are the WebStart (configurable) and JumpStart... (1 Reply)
Discussion started by: BeekerC
1 Replies
Login or Register to Ask a Question