Operating System - HP-UX
1827158 Members
2107 Online
109716 Solutions
New Discussion

How to upgrade Perl on Unix 10.2

 
Azhar_4
Occasional Advisor

How to upgrade Perl on Unix 10.2

Hi;
I'm pretty new to HP UX. Please guide me on how to upgrade Perl version on our existing HPUX B.10.2 9000/725 controller. The current Perl version is 5.004 which is very out dated.
Appreciate your helps and suggestions.
Regards;
Azhar
9 REPLIES 9
Dave Olker
Neighborhood Moderator

Re: How to upgrade Perl on Unix 10.2

Hi Azhar,

One of the ITRC gurus named Merijn maintains a web site containing pre-compiled binaries for HP-UX systems. The site is:

http://www.cmve.net/~merijn

I just checked and he has pre-compiled versions of Perl, including 5.8.5 for HP-UX 10.20. The other option is to download the source code from http://perl.org and compile it on the 10.20 system.

Another place usually worth checking is the HP-UX Software Porting and Archive Center located at:

http://hpux.cs.utah.edu/

However, I didn't find any Perl versions compiled for 10.20 at this site.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Azhar_4
Occasional Advisor

Re: How to upgrade Perl on Unix 10.2

Thanks Dave for the swift response. I will do it soon.
Regards;
Azhar
Azhar_4
Occasional Advisor

Re: How to upgrade Perl on Unix 10.2

Hi;

After downloading the perperl-5.8.0-gcc-3.2-10.20 version and untar at our controller directory /opt/perl5, I do a checking by typing #perl -v.
I got this message
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libpthread.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
You have any idea on this ?
Thanks in advance.

Regards;
Azhar


Sunil Sharma_1
Honored Contributor

Re: How to upgrade Perl on Unix 10.2

Hi,

Please check this link. It looks same problem as yours.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211628

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
H.Merijn Brand (procura
Honored Contributor

Re: How to upgrade Perl on Unix 10.2

Latest pth dources now on release 2.0.2 available on GNU mirrors (i.e. ftp://download.xs4all.nl/pub/mirror/gnu/pth/ )

The pth link on HP-UX mirrors mentioned in previous post still has the 10.20 version (because it's never been built for 11.x due to the fact that 11.x has native POSIX threads)

Please post for perl and gcc downloads the fast link to preserve bandwidth: http://mirrors.develooper.com/hpux/

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Azhar_4
Occasional Advisor

Re: How to upgrade Perl on Unix 10.2

I manage to get it work after goto the link shown by Sunil.

I face the same problem as Keely Jackson whereby a link failed but copied the file from /opt/pth/lib to /usr/lib and it now seems to work.

Creating a link didn't work. Will there be any problem by copying instead of linking.

By the way thanks to you all guys for you wonderful assistance.

Regards;
Azhar


Azhar_4
Occasional Advisor

Re: How to upgrade Perl on Unix 10.2

Hi;
Next step I download PerlTk from CPAN. I followed the instruction but failed to get it done.
After untar the file, I go to the directory and do perl Makefile.PL and get below message.

# perl Makefile.PL
Can't locate open.pm in @INC (@INC contains: /opt/perl/lib/5.8.0/PA-RISC1.1 /opt
/perl/lib/5.8.0 /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1 /opt/perl/lib/site_perl
/5.8.0 /opt/perl/lib/site_perl .) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.

Any idea. Or is my initial Perl setup not right. Thanks in advance.

Regards;
Azhar
H.Merijn Brand (procura
Honored Contributor

Re: How to upgrade Perl on Unix 10.2

Bzzzzzt

Tk is already included in my ports!

be sure that my perl comes first in your $PATH, and you do not by accident use HP's older version of perl (probably even 4.036 on 10.20)

# perl -v

gives you the version, which should be the same as

# /opt/perl/bin/perl -v

if you installed my bundle


# /opt/perl/bin/perl -MV=Tk

will show you the installed version
pTk is NOT a fun module to build

Don't forget about your point asignement
Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Azhar_4
Occasional Advisor

Re: How to upgrade Perl on Unix 10.2

Hi;
Still not successful. Version check on every path same "v5.8.0 built for PA-RISC1.1".

Got this error message after typing
#perl -MV=Tk

Can't locate V.pm in @INC (@INC contains: /opt/perl/lib/5.8.0/PA-RISC1.1 /opt/pe
rl/lib/5.8.0 /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1 /opt/perl/lib/site_perl/5.
8.0 /opt/perl/lib/site_perl .).
BEGIN failed--compilation aborted.

Any advice. Thanks in advance.
Regards;
Azhar