1826217 Members
3127 Online
109691 Solutions
New Discussion

Re: Perl on HPUX 10.20

 
SOLVED
Go to solution
Jane Lecian
Valued Contributor

Perl on HPUX 10.20

I am trying to get Perl 5.6.1 for an HPUX 10.20 system. Unfortunately I have been unable to find the precompiled binaries anywhere so I am trying to build it from the source code.

When I run the "sh Configure -de" is gets part way through and then complains "The bundled C compiler is not ANSI-compliant, and so cannot be used to build perl. Please see the file README.hpux for advice on alternative compilers. Cannot continue, aborting."

We have aCC installed on this machine, and from what I could tell, I think it is ANSI-C compliant. (At least the online documention for aCC claims it is ANSI-C compliant.) How do I get the Configure script to recognize this? The README.hpux doesn't say how to tell it how to use aCC; it just says use gcc which I don't have on this machine.

Thanks so much for your help,

Jane
3 REPLIES 3
H.Merijn Brand (procura
Honored Contributor

Re: Perl on HPUX 10.20

Get a precompiled 5.8.0 for 10.20 from my ITRC site: http://www.cmve.net/~merijn or https://www.beepz.com/personal/merijn
I don't do 5.6.1 anymore.

do

# which cc

to see if the compiler *you* think it should use is indeed the compiler that Configure finds. Otherwise, force it to:

# sh ./Configure -Dcc=/your/path/to/the/cc -des

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Jane Lecian
Valued Contributor

Re: Perl on HPUX 10.20

H. Merijn,

Thanks for your quick response. I'm sorry I didn't get back to you as quickly.

I would really like to use ver. 5.8.0, but the engineer who requested Perl has a script that was written in 5.6.1, and he is not confident that it would run under 5.8.0. I tried to convince him that it would, but he still insisted on ver. 5.6.1 of Perl.

I did use your suggested of doing "which cc", and found out that it was pointing to HP-UX's default C. So I used your second suggestion with the -Dcc switch, and that worked to get me by my first error.

I have now come up with a second error:
Error: 328: "gccvers.c", line 10 # Function 'exit' has not been defined yet; ..."

I'm thinking I need to set the switch -Aa to tell aCC to work in ANSI-C mode, but I haven't tested my idea yet. I'll let you know how it goes.

Thanks again,

Jane
Ron Kinner
Honored Contributor
Solution

Re: Perl on HPUX 10.20

Jane,

There is a 5.6.1 download for HP at:

http://people.netscape.com/richm/nsPerl/

You might try it. It's some sort of cross between a binary and source. There is a special installer that comes with it.

Ron