Hello, I am getting following message when I run "cpan Net::Netconf"
Checking if EOF on pty slave is correctly reported to master... (this fails on about 50% of the supported systems, so don't panic! Expect will work anyway!) TIMEOUT Sorry, you may not notice if the spawned process closes the pty. Passed 42 of 42 tests. RGIERSIG/Expect-1.21.tar.gz Tests succeeded but 2 dependencies missing (IO:ty,IO::Tty) RGIERSIG/Expect-1.21.tar.gz [dependencies] -- NA Running make install make test had returned bad status, won't install without force Running install for module 'File::Which' Running make for A/AD/ADAMK/File-Which-1.09.tar.gz Fetching with HTTP::Tiny: http://www.planet-elektronik.de/CPAN/authors/id/A/AD/ADAMK/File-Which-1.09.tar.gz Fetching with HTTP::Tiny: http://www.planet-elektronik.de/CPAN/authors/id/A/AD/ADAMK/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/A/AD/ADAMK/File-Which-1.09.tar.gz ok ............. ......... CPAN.pm: Going to build A/AD/ADAMK/File-Which-1.09.tar.gz CPAN.pm: Going to build A/AD/ADAMK/File-Which-1.09.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Test::Script 1.05 not found. Generating a Unix-style Makefile Writing Makefile for File::Which Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- ADAMK/File-Which-1.09.tar.gz ---- Test::Script [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Test::Script' Running make for A/AD/ADAMK/Test-Script-1.07.tar.gz Fetching with HTTP::Tiny: Warning: prerequisite IPC::Run3 0.034 not found. Warning: prerequisite Probe:erl 0.01 not found. Generating a Unix-style Makefile Writing Makefile for Test::Script Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- ADAMK/Test-Script-1.07.tar.gz ---- Probe:erl [requires] IPC::Run3 [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Probe:erl' ................................. ....................... JPRIYAL/Net-Netconf-0.01.tar.gz /usr/bin/make -- OK Running make test No tests defined for Net-Netconf extension. JPRIYAL/Net-Netconf-0.01.tar.gz Tests succeeded but one dependency not OK (Bundle::Expect) JPRIYAL/Net-Netconf-0.01.tar.gz [dependencies] -- NA Running make install make test had returned bad status, won't install without force But when I install all the three dependencies manually, this command works and installed Net::Netconf module in my system. Thanks, Regards, Priyal -----Original Message----- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: Friday, May 16, 2014 3:16 PM Cc: beginners@perl.org Subject: Re: Error in installing "Bundle::Expect" as dependency for some other module using CPAN Hi Priyal, please reply to all recipients / to the list. On Fri, 16 May 2014 08:41:02 +0000 Priyal Jain <jpri...@juniper.net> wrote: > Hello, > > I am uploading my module Net::Netconf > http://search.cpan.org/search?mode=all&query=net%3A%3Anetconf in CPAN, > but its giving error of dependency not found for Bundle::Expect. I am > mentioning all my dependency in Makefile.Pl It's "Makefile.PL" with a capital "L" - not "Makefile.Pl". <CODE> use ExtUtils::MakeMaker; our $VERSION ='0.01'; use 5.006; WriteMakefile( NAME => 'Net-Netconf', AUTHOR => 'Juniper Networks, Inc', VERSION_FROM => 'Makefile.PL', PREREQ_PM => {'XML::LibXML'=> '0', 'File::Which'=> '0', 'Bundle::Expect'=>'0',}, ABSTRACT => 'netconf libraries for perl', ); </CODE> > > But its giving error. Kindly help me. > > > Thnanks, > Priyal > 1. You need "use strict;" and "use warnings;" there. 2. "VERSION_FROM" => "Makefile.PL" is a bad idea - put it in the lib/Net/Netconf.pm module. 3. CPAN Testers is happy enough - do you have good test coverage: http://www.cpantesters.org/distro/N/Net-Netconf.html?oncpan=1&distmat=1&version=0.01 4. Which error are you getting? 5. CPANTS is not happy at all - see http://cpants.cpanauthors.org/dist/Net-Netconf - you should correct most of these problems. 6. I'm not sure one can easily depend on Bundle::Expect. Maybe specify the modules that you actually use (always a good idea). 7. See http://perl-begin.org/tutorials/bad-elements/ (note: perl-begin.org is a domain I originated). 8. Also see http://perl-begin.org/topics/cpan/ . 9. It's good that you're using XML::LibXML instead of parsing XML using regexes or using XML::Simple . --------------- Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/ Chuck Norris is the reason why OpenBSD is called OpenBSD. They wanted to call it LockedDownBSD but couldn't find a way to keep Chuck Norris out! (By Andrew Brehm) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/