¿Cómo se instala gwhois en un Mac? Ya estoy en marcha con Homebrew; asumo que hay alguna configuración mágica de Perl necesaria antes de que se ejecute.
He probado lo siguiente:
brew install libidn
sudo cpan Net::LibIDN
sudo cpan LWP::Simple
sudo cp pattern /etc/gwhois/
sudo cp gwhois /usr/bin/
sudo cp gwhois.1 /usr/share/man/man1/
Y cuando ejecuto gwhois obtengo
Can't locate Net/LibIDN.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 ...) at /usr/bin/gwhois line 81.
BEGIN failed--compilation aborted at /usr/bin/gwhois line 81.
No puedo conseguir que LibIDN se instale correctamente; la salida de brew install libidn es:
going to read '/Users/user/.cpan/Metadata'
Database was generated on Sun, 27 Jan 2013 16:53:02 GMT
Running install for module 'Net::LibIDN'
Running make for T/TH/THOR/Net-LibIDN-0.12.tar.gz
Checksum for /Users/user/.cpan/sources/authors/id/T/TH/THOR/Net-LibIDN-0.12.tar.gz ok
CPAN.pm: Going to build T/TH/THOR/Net-LibIDN-0.12.tar.gz
ld: warning: ignoring file /usr/local/lib/libidn.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libidn.dylib
Undefined symbols for architecture i386:
"_idna_to_ascii_8z", referenced from:
_main in __test1-uIxi6i.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: ignoring file /usr/local/lib/libidn.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libidn.dylib
Undefined symbols for architecture i386:
"_idna_to_ascii_8z", referenced from:
_main in cceb1x8C.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccGGlAwg.out (No such file or directory)
This module requires GNU Libidn, which could not be found.
No 'Makefile' created'YAML' not installed, will not store persistent state
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