fochi has asked for the wisdom of the Perl Monks concerning the following question:

Would you please help me with the following problem?

cpan> install Net::LibIDN
Running install for module 'Net::LibIDN'
Running make for T/TH/THOR/Net-LibIDN-0.12.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.017)
Checksum for /home/.cpan/sources/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ok
.... Various lines ....
Net-LibIDN-0.12/Artistic
Net-LibIDN-0.12/MANIFEST
Net-LibIDN-0.12/LibIDN.xs
CPAN: File::Temp loaded ok (v0.21)

CPAN.pm: Going to build T/TH/THOR/Net-LibIDN-0.12.tar.gz

__test1.c:1:18: error: idna.h: No such file or directory
__test1.c:1:18: error: idna.h: No such file or directory
This module requires GNU Libidn, which could not be found.
No 'Makefile' created THOR/Net-LibIDN-0.12.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
THOR/Net-LibIDN-0.12.tar.gz :
writemakefile NO -- No 'Makefile' created



Thanks

Hilário Fochi Silveira

Replies are listed 'Best First'.
Re: Net::LibIDN Install Failure
by Corion (Patriarch) on May 02, 2009 at 16:30 UTC

    What part of:

    This module requires GNU Libidn, which could not be found.

    do you have a problem with?

Re: Net::LibIDN Install Failure
by Anonymous Monk on May 02, 2009 at 16:54 UTC
      I am having this issue also and libidn is installed as is idna.h. However, I suspect that there is a version clash as following the suggestion to point to the correct include directory gives a heap of other errors: mainly to do with unknown types. What version of libidn does Net::LibIDN require?
        Why don't you read the README?
        DEPENDENCIES This module requires these other modules and libraries: GNU Libidn >=0.5.0