Operating System - Linux
1820590 Members
1793 Online
109626 Solutions
New Discussion

Perl Text::Iconv won't compile.

 
PatRoy
Regular Advisor

Perl Text::Iconv won't compile.

Hi. Can anyone help me out?

I'm running my own compile Perl 5.10.0 on HP-UX 11.31. Compiled with GCC 4.2.3.

I'm trying to compile this 1 module and it just won't even create the Makefile.

> perl Makefile.PL
Checking for iconv ... fail
Failed to find iconv, please check your settings and re-run as:
perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

I had this issue before when I compiled 5.8.8 on an older PA-RISC system. This is the note I had down from the past:

***
NOTE: if you have trouble compiling Text::Iconv (i.e. complaining that it can't find iconv...),
you might need to manually compile it going into you're .../.cpan/build/Text-Iconv-1.4/ folder like so:

/opt/perl-5.8.8/bin/perl Makefile.PL LIBS='-L/usr/lib' INC='-I/usr/include'
make && make test
make install

* for some reasons, it doesn't seem to like the GNU iconv installed on HPUX.
It's supposed to work, but didn't for me!!!
I managed to get it going using the builtin iconv_open(), iconv() and iconv_close() functions from within the systems libc libraries!

I did exactly this and still, it won't compile:

perl Makefile.PL LIBS='-L/usr/lib' INC='-I/usr/include'
Your settings:
LIBS: -L/usr/lib
INC: -I/usr/include
Checking for iconv ... fail
Failed to find iconv, please check your settings and re-run as:
perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

It can't find iconv. However, it is there. libc is under /usr/lib/. The iconv HP provided binary is also under /usr/bin/iconv. Heck I even have gnu iconv 1.12, found under /usr/local/... Also tried with LIBS under /usr/local/lib, etc.... still didn't work.

Anyone? I'm clueless here.

Thanks a lot!!