delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/31/02:51:21

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48BA3E96.60806@x-ray.at>
Date: Sun, 31 Aug 2008 08:47:50 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: perl Net::Nslookup problem with Cygwin
References: <19238930 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <19238930.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019