1836301 Members
2450 Online
110098 Solutions
New Discussion

perl migration

 
Tim Hunt_4
Occasional Contributor

perl migration

Hi.
First let me say that I am not the SA for this platform, but have a need to use perl/DBI/Oracle.

I have had perl 5.6.1 (depot) installed in /opt/perl/ and want to install 5.8.x and try it out with some production scripts. Will swinstall allow me to have two distinct perl trees?

Secondly, which gcc will be necessary for me to get CPAN module installs that require some compiles to run successfully, The current combination of B.11.11 and gcc 3.1 yield a number of warnings during make and fail.

Thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: perl migration

The default behavior of sd/ux (swinstall)would be to overwrite the perl depot. I just did this upgrade last night on a D320 and thats what happened.

The only way I've found around it is to install the new release on a test machine and do script testing there.

I have not heard of anybody doing this upgrade and having any problems with legacy perl code.

I did an experiment for Michael Tully in Austrailia with java insalling to a different target. I could not figure out how to use th outcome. Java is different as when you install 1.4 on a 1.3 system 1.3 remains on the system.

There may be advanced swinstall characteristics that let you install the Perl depot leaving the old one available. I haven't been able to figure out which option will do that.

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
Tim Hunt_4
Occasional Contributor

Re: perl migration

any non-depot options open?
H.Merijn Brand (procura
Honored Contributor

Re: perl migration

My site has all perl's you can think of (not for Itanium yet) in compressed archives (tar bzip2) instead of depots

My HP ITRC site pages can be found at (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
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: perl migration

And you can install them on any location, but /opt/perl is the built-in path for all modules, so ...

you will have to change/set $PERL5LIB

Assuming that you install my perl on /opt/perl585m (what's in a name), set PERL5LIB to

/opt/perl585m/lib/5.8.5/PA-RISC2.0:/opt/perl585m/lib/5.8.5:/opt/perl585m/lib/site_perl/5.8.5/PA-RISC2.0:/opt/perl585m/lib/site_perl/5.8.5:/opt/perl585m/lib/site_perl:.

FWIW, the SW depots do not allow dual installs

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