Operating System - Linux
1829589 Members
6860 Online
109992 Solutions
New Discussion

Perl modules won't "make" properly

 
Matt Hearn
Regular Advisor

Perl modules won't "make" properly

Hi all! I've been trying to upgrade perl on my 11.11 system and install some modules, and I'm running into a host of problems.

First, I installed perl 5.8.8, and had no problems. Once it was on there, I downloaded some modules, most notably Compress::Zlib v1.42, and I'm trying to build them.

I did "perl Makefile.PL" and it seemed to work just fine; so then I typed "make" and it gave me an expected compiler message:

cp Zlib.pm blib/lib/Compress/Zlib.pm
AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib)
gcc -c -I./zlib-src -D_HPUX_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\" -fPIC "-I/opt/soe/local/perl-5.8.8/lib/5.8.8/PA-RISC1.1/CORE" Zlib.c

But now it's just hung. It doesn't move on to any further files, or return to a prompt.

I killed it, and thought perhaps I needed to regenerate the makefile before trying again, and so I ran "perl Makefile.PL" again, but now it just hangs as well! It's almost as if the "make" command did something to the perl binaries or libraries, even though nothing should have touched them until I did a "make install", right?

Argh. I removed perl 5.8.8 and reinstalled it, but got the same response. I tried a previous version of 5.8.7 that was on the server, and it was able to run "perl Makefile.PL" without problem, but it's hung on the "make" in the same way, and I'm afraid to kill it for fear that's corrupted a known good perl version.

I do NOT have ANSI C/C++ on this server, just the regular compiler that comes with the OS.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Perl modules won't "make" properly

Hi Matt:

You need the compiler with which Perl was compiled.

# perl -V:cc

...will show you the compiler you need to add modules requiring compilation.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Perl modules won't "make" properly

Hi (again) Matt:

I should add that if you need/want a binary distribution of Perl, compiled with 'gcc', fetch it from Merijn's site:

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

Regards!

...JRF...
Matt Hearn
Regular Advisor

Re: Perl modules won't "make" properly

root> /opt/soe/local/perl-5.8.7/bin/perl -V:cc
cc='gcc';

It seems to be using gcc to do the compile, so I'm still confused as to why it would hang.

I looked at the generated Makefile and unfortunately I just never got the hang of those things, so I can't tell exactly what might be causing it to freeze up.

I tried issuing the gcc command from a shell, and it hangs there too, which makes me think my gcc is hosed. Argh.