จะติดตั้งgwhoisบน Mac ได้อย่างไร? ฉันเริ่มทำงานกับ Homebrew แล้ว ฉันคิดว่ามีการกำหนดค่าเมจิก perl บางอย่างก่อนที่มันจะทำงาน
ฉันได้ลองทำสิ่งต่อไปนี้แล้ว:
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/
และเมื่อฉันทำงาน gwhois ฉันได้รับ
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.
ฉันไม่สามารถติดตั้ง LibIDN ได้อย่างถูกต้อง เอาต์พุตจากการติดตั้งการชง libidn คือ:
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