wilsond has asked for the wisdom of the Perl Monks concerning the following question:
I'm having a terrible time getting Net::LibIDN to work in Windows via ActivePerl. Is this even possible? The GNU Libidn site claims it works in Windows, so it seems that it should be.
None of the PPM repositories seem to have it (they all list it as buggy/failed) and I can't get it to build via CPAN. (Though I can build pretty much any other module I need)
The error I'm getting during build:
CPAN.pm: Going to build T/TH/THOR/Net-LibIDN-0.11.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) 'cc' is not recognized as an internal or external command, operable program or batch file. __test1.c:1:18: idna.h: No such file or directory This module requires GNU Libidn, which could not be found. THOR/Net-LibIDN-0.11.tar.gz C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NO Makefile cre +ated Running make test Make had some problems, won't test Running make install Make had some problems, won't install
Now, I know it needs GNU Libidn, but how do I go about making this happen? Do I just need to make the code available somehow, or do I have to fully install GNU Libidn? And if I have to install it, will I have to install it on every Windows computer that runs a copy of my code?
Edit: Update on errors: (downloaded libidn from GNU site and extracted it into subfolder named libidn-1.9 in the cwd)
C:\Perl\cpan\build\Net-LibIDN-0.11-QaNUHQ>perl Makefile.PL --with-libi +dn=libidn- 1.9 --with-libidn-inc=libidn-1.9\lib Set up gcc environment - 3.4.5 (mingw-vista special r3) In file included from __test1.c:1: libidn-1.9/lib/idna.h:31:38: idn-int.h: No such file or directory In file included from __test1.c:1: libidn-1.9/lib/idna.h:67: error: syntax error before '*' token libidn-1.9/lib/idna.h:69: error: syntax error before '*' token libidn-1.9/lib/idna.h:74: error: syntax error before '*' token libidn-1.9/lib/idna.h:82: error: syntax error before '*' token libidn-1.9/lib/idna.h:86: error: syntax error before "uint32_t" This module requires GNU Libidn, which could not be found.
Thanks a ton, in advance.
| While I ask a lot of Win32 questions, I hate Windows with a passion. That's the problem with writing a cross-platform program. I'm a Linux user myself. I wish more people were. |
| If you want to do evil, science provides the most powerful weapons to do evil; but equally, if you want to do good, science puts into your hands the most powerful tools to do so. |
| - Richard Dawkins |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::LibIDN in Windows, is it possible?
by Corion (Patriarch) on Feb 05, 2009 at 14:01 UTC | |
by dHarry (Abbot) on Feb 05, 2009 at 14:21 UTC | |
by wilsond (Scribe) on Feb 05, 2009 at 15:16 UTC | |
by almut (Canon) on Feb 05, 2009 at 16:19 UTC | |
by Corion (Patriarch) on Feb 05, 2009 at 15:20 UTC | |
by wilsond (Scribe) on Feb 05, 2009 at 14:05 UTC | |
|
Re: Net::LibIDN in Windows, is it possible?
by syphilis (Archbishop) on Feb 05, 2009 at 23:52 UTC | |
by syphilis (Archbishop) on Feb 06, 2009 at 01:00 UTC | |
by PerlRob (Sexton) on Sep 08, 2010 at 00:09 UTC |