Operating System - Linux
1827474 Members
1754 Online
109965 Solutions
New Discussion

perl module IO::Tty compilation error

 
SOLVED
Go to solution
Patrice Le Guyader
Respected Contributor

perl module IO::Tty compilation error

Hello,

I'm trying to compile the module IO::Tty for using Expect but I've got the following problem (see attach document).
I'm using gcc 3.3.2 and binutils 2.14. It seems not using gcc and using cc instead.

Thanks
Patrice
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
2 REPLIES 2
Arunvijai_4
Honored Contributor

Re: perl module IO::Tty compilation error

Hello,

You can just export this before stating #perl Makefile.PL

# export CC=/usr/local/bin/gcc (or, wherever you installed GCC)

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
H.Merijn Brand (procura
Honored Contributor
Solution

Re: perl module IO::Tty compilation error

You are using a threaded perl build: /opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi/ which is for sure not one of my distributions :)

If you type

# perl -V:cc

You will see what C compiler was used to build this perl binary, and module builds will inherit the setting from the perl binary configuration

If your perl was built with cc,

# perl Makefile.PL

will (try to) use the same compiler and -flags.

You will have to hand-edit the generated Makefile to alter both, or install a (newer) perl that was built with gcc (like all my builds)

Also note that the perl you are using is a threaded build (slow) for PA-RISC-1.1. If you want a noticable speedup, and you are running on HP-UX 11.xx on PA-RISC-2.0, consider installing another perl release. Most recent stable is 5.8.8

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