Operating System - HP-UX
1829845 Members
1976 Online
109993 Solutions
New Discussion

compiling perl app on hp-ux with activestate pdk

 
SOLVED
Go to solution
Gianmarco_1
New Member

compiling perl app on hp-ux with activestate pdk

Dear all,
I'm working on HP-UX 11.22 on IA64. I need to compile perl code to get an executable via ActiveState Perl Development Kit (PDK). The perl available on the machine is not proper as can be seen by this message:

PerlApp 7.2.0 build 284799
Copyright (C) 1998-2008 ActiveState Software Inc. All rights reserved.
Trial license (Expires: 2009-11-13)
****************************************************************************
* WARNING: Applications generated by this evaluation copy of PerlApp will *
* stop working after the end of the evaluation period: 2009-11-13 *
****************************************************************************
libperl.so at '/opt/perl_32/lib/5.8.3/IA64.ARCHREV_0-thread-multi/CORE/libperl.so' is not compatible with the PDK

The ActiveState documentation (http://docs.activestate.com/pdk/7.2/Install.html) suggests to get "ActivePerl build 627 or later on HP-UX. ActivePerl for HP-UX can be obtained from HP." Any idea of where can I download ActivePerl 627 from HP?

Best regards
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: compiling perl app on hp-ux with activestate pdk

Hi:

Although HP has stopping using ActiveState's distribution, you can get a binary distribution here:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL

If you don't license the HP-UX C compiler (which is used to create this distribution) you might want to fetch your Perl as compiled with 'gcc' from:

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: compiling perl app on hp-ux with activestate pdk

>I'm working on HP-UX 11.22 on IA64.

11.22 hasn't been supported for years, are you really on 11.23?

>JRF: might want to fetch your Perl as compiled with gcc from:

That may not work if really using 11.22?
H.Merijn Brand (procura
Honored Contributor

Re: compiling perl app on hp-ux with activestate pdk

the 11.11 build might very well work on 11.22 (at least I give it more chance than the 11.23 build), but my 11.11 is pa, not IA64

Another difference is that all ActivePerl's are threaded builds, and mine are not. I don't need threads, and never needed them. I also don't like the slowdown in regular code a threaded perl implies. (And you do NOT need a threaded perl for Oracle).

I'm wondering if you actually need a ActivePerl for ActiveState's PDK to function. They might require a threaded perl, but I cannot eblieve they require an ActivePerl.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Gianmarco_1
New Member

Re: compiling perl app on hp-ux with activestate pdk

Dear all
thanks for the answers. Here are some clarifications. The machine I'm working on is HP-UX B.11.23 U ia64, so I was wrong to tell you 11.22.
I was able to get an ActiveState Perl 5.8.8 packed as perl_E.5.8.8.G_HP-UX_B.11.31_IA_PA.depot.
I've launched:
/usr/sbin/swinstall -s /perl_E.5.8.8.G_HP-UX_B.11.31_IA_PA.depot

and when I specify to install the package in my home (I haven't got root privileges), I get this error: "You do not have the required permissions to select this target. Check permissions etc". Is there a way to make a single-user installation of a depot file in my own directory?

Best regards
Dennis Handly
Acclaimed Contributor

Re: compiling perl app on hp-ux with activestate pdk

/usr/sbin/swinstall -x run_as_superuser=false \
-s $PWD/perl_E.5.8.8.G_HP-UX_B.11.31_IA_PA.depot \* \
@ $PWD/perl_install_dir

You might have a lot of problems with alternate root installs, if there are both PA and Integrity bits in the depot (IA_PA).
Gianmarco_1
New Member

Re: compiling perl app on hp-ux with activestate pdk

Hi all

thanks for the answers but I still haven't managed to find a Perl distribution for HP-UX that is compatible with PerlApp 7.2.0 for HP-UX.
Thanks to the hint by James R. Ferguson I got a 5.8.8 perl that works (not properly installed, just untarred and unzipped, but perl -v is alive) but PerlApp complains as follows:
/home/egiabru/perl/perl_E.5.8.8.G_HP-UX_B.11.31_IA_PA/Perl5-64/PERL-RUN/opt/perl_64/bin/perl-static' (unknown-arch) is not binary compatible with ActivePerl (IA64.ARCHREV_0-thread-multi)

Then, from H.Merijn Brand site (http://mirrors.develooper.com/hpux/downloads.html) I downloaded "perl 5.10.0 + DBI 1.601 + Tk 804.027_502 built with gcc-4.2.1". Again, this work but PerlApp complains exactly the same:

/home/egiabru/perl/perl-5.10.0-11.23-ia64/perl5-64-RUN/opt/perl64/bin/perl5.10.0' (unknown-arch) is not binary compatible with ActivePerl (IA64.ARCHREV_0-thread-multi)

So any help about how to find a perl acceptable by PerlApp is appreciated!

Cheers
Gianmarco