Mail Archives: cygwin/2008/08/31/02:51:21
gw1500se schrieb:
> I am trying to use the perl module Net::Nslookup but it does not work (it is
> almost too simple to program wrong), particularly for doing reverse lookups.
> After some discussions on a perl forum, the consensus is that the problem
> seems to be specific to Cygwin. Is anyone using this module successfully
> under Cygwin and if so did you need to do anything special to get it to work
> and/or can someone help me figure out why mine is not working? Thanks.
$ cpan Net::Nslookup
Writing Makefile for Net::Nslookup
(/usr/bin/perl5.10.0.exe Makefile.PL exited with 0)
CPAN::Reporter: Makefile.PL result is 'pass', No errors.
cp lib/Net/Nslookup.pm blib/lib/Net/Nslookup.pm
(/bin/make exited with 0)
CPAN::Reporter: make result is 'pass', No errors.
DARREN/Net-Nslookup-1.18.tar.gz
/bin/make -- OK
Running make test
/usr/bin/perl5.10.0.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/nslookup....ok
All tests successful.
Files=1, Tests=12, 0 wallclock secs ( 0.00 usr 0.00 sys + 0.08 cusr
0.03 csys = 0.11 CPU)
Result: PASS
(/bin/make test exited with 0)
CPAN::Reporter: Test result is 'pass', All tests successful.
CPAN::Reporter: preparing a CPAN Testers report for Net-Nslookup-1.18
CPAN::Reporter: sending test report with 'pass' to cpan-testers AT perl DOT org
DARREN/Net-Nslookup-1.18.tar.gz
/bin/make test -- OK
Running make install
Prepending /home/rurban/.cpan/build/Net-Nslookup-1.18-7F8gp6/blib/arch
/home/rurban/.cpan/build/Net-Nslookup-1.18-7F8gp6/blib/lib to PERL5LIB
for 'install'
Installing /usr/lib/perl5/site_perl/5.10/Net/Nslookup.pm
Writing
/usr/lib/perl5/site_perl/5.10/i686-cygwin/auto/Net/Nslookup/.packlist
Appending installation info to
/usr/lib/perl5/5.10/i686-cygwin/perllocal.pod
DARREN/Net-Nslookup-1.18.tar.gz
/bin/make install -- OK
Net::DNS is in vendor_perl/5.10 so I wonder why it fails for you.
Most likely the test fails because you don't have a /etc/hosts file to
test against.
If you don't have a /etc/hosts file, symlink it to your real hosts file,
probably at %WINDIR%\system32\drivers\etc\hosts.
If so, do that with
cd /etc
ln -s `cygpath $WINDIR`/system32/drivers/etc/hosts
If not, can you attach your problem to the CPAN tracker?
The complete output of your make test failure, and the content of your
/etc/hosts file please.
cd ~/.cpan/build/Net-Nslookup-...
make test TEST_VERBOSE=1
URLs:
http://search.cpan.org/dist/Net-Nslookup/
=> http://rt.cpan.org/Public/Dist/Display.html?Name=Net-Nslookup
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -