Operating System - Linux
1753278 Members
5621 Online
108792 Solutions
New Discussion

Upgrading from perl 5.6.1 to perl 5.8.3

 
fl_1
Occasional Contributor

Upgrading from perl 5.6.1 to perl 5.8.3

Upgrading from perl 5.6.1 to perl 5.8.3

I want to upgrade from perl 5.6.1 to perl 5.8.3 Both perl 5.6.1 and
perl 5.8.3 install into the same location, namely /opt/perl. To
install perl 5.8.3, it seems that I would have to give up perl
5.6.1.

My perl 5.6.1 says (perl -V) that it was built with gcc.
My perl 5.8.3 says (perl -V) that it was built with cc.

I am concerned about any programs that may run perl and load shared
libraries. I believe the shared libraries must be built with the
same compiler that was used to build perl. So, if I remove perl
5.6.1 and install perl 5.8.3, I am concerned that I may "break"
programs that used to use perl 5.6.1 and loaded shared libraries
built with gcc.

Is there any quick solution to this problem? For example, is
there a way to install perl 5.8.3 into a different location?

Thanks
fl
1 REPLY 1
H.Merijn Brand (procura
Honored Contributor

Re: Upgrading from perl 5.6.1 to perl 5.8.3

Correct, perl5.6.x and perl5.8.x are NOT binary compatible

IF however, you want to install perl-5.8.x in 64bit mode (take 5.8.7 from my site), it installs in /opt/perl64, and that will happily run next to eachother

If I'm not mistaken, the more recent builds from the porting center install in /usr/local instead of in /opt, so that would be a safe option too

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