Re: [PLUG] What to do when perl module installation fails [FIXED]
On Mon, 11 Sep 2017, Rich Shepard wrote: > Running sa-learn this morning displayed a warning (error?) message not > before seen: Fixed. I removed all files named 'spamassassin' and 'sa-*' from the system; they were quite old (2012-2015). Then installed 40 perl modules and a network tool as spamassassin dependencies followed by spamassassin. Ran sa-update to get new rules (no longer included with SA), restarted spamd, and it's up and running correctly. No errors running sa-learn on the spam file. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] What to do when perl module installation fails
On Wed, 2017-09-13 at 05:44 -0700, Rich Shepard wrote: > Is there a way to trace the reason for the failure? In the past > MCCPAN has > told me there's an updated version available and how to upgrade, so I > do > that first. Nothing about that this time. > > Finding the reason for the failure and fixing it is my preference. > Are > there references or tools for non-perl coders to do this? It's been about a decade since I delved into writing perl module tests, so I'm afraid I don't have much insight to offer here. You could attempt to contact the maintainers of the Net::DNS package ("Net::DNS is maintained at NLnet Labs (www.nlnetlabs.nl) by Willem Toorop.") for assistance. I tried installing Net::DNS on my laptop, but it installed without errors. It seems like your problem is in the file ~/.cpan/build/Net- DNS-1.12-0/t/08-IPv4.t, but I don't see anything in your output that indicates what specifically might have happened. The version that installed for me from CPAN was a later one (1.12), which has a different number of tests indicated for that test file, 91 for me vs. 77 for you. FYI, my output for that portion of the test suite looks like this: t/08-IPv4.t ... 81/91 # non-existent \ 'bogus.example.com.' resolved: 198.105.254.63 198.105.244.63 t/08-IPv4.t ... ok Sorry I can't be of more help here. Testing is great and all that, but failing mysteriously isn't a whole lot better than no test at all, IMHO. -- David Fleck___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] What to do when perl module installation fails
On Mon, 2017-09-11 at 06:05 -0700, Rich Shepard wrote: > As root I tried to install Net::BSD using 'perl -MCPAN -e shell' and > this, > too, failed: > > Test Summary Report > --- > t/08-IPv4.t (Wstat: 65280 Tests: 70 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 77 tests but ran 70. > Files=106, Tests=2978, 48 wallclock secs ( 0.88 usr 0.14 sys + 10.62 > cusr 0.72 csys = 12.36 CPU) > Result: FAIL > Failed 1/106 test programs. 0/2978 subtests failed. > Makefile:1337: recipe for target 'test_dynamic' failed > make: *** [test_dynamic] Error 255 > NLNETLABS/Net-DNS-1.05.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, > try: > reports NLNETLABS/Net-DNS-1.05.tar.gz > Failed during this command: > NLNETLABS/Net-DNS-1.05.tar.gz: make_test NO > > I've not had 'install ' fail before and need advice > on how to > proceed to get the module installed so spamassassin is once again > happy. You can try brute force on the CPAN command line: force CMDtry hard to do command fforce CMDtry harder notest CMDskip testing so, either 'force install', 'fforce install', or 'notest install' in this case, I think. No guarantees that this won't result in compounded problems down the line, though. -- David Fleck___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] What to do when perl module installation fails
Running sa-learn this morning displayed a warning (error?) message not before seen: "Use of uninitialized value in numeric ge (>=) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 214. plugin: failed to parse plugin /etc/mail/spamassassin/Botnet.pm: Can't locate Net/DNS.pm in @INC (you may need to install the Net::DNS module) (@INC contains: /usr/share/perl5/vendor_perl /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5) at /etc/mail/spamassassin/Botnet.pm line 32. BEGIN failed--compilation aborted at /etc/mail/spamassassin/Botnet.pm line 32. Compilation failed in require at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/PluginHandler.pm line 109." As root I tried to install Net::BSD using 'perl -MCPAN -e shell' and this, too, failed: Test Summary Report --- t/08-IPv4.t (Wstat: 65280 Tests: 70 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 77 tests but ran 70. Files=106, Tests=2978, 48 wallclock secs ( 0.88 usr 0.14 sys + 10.62 cusr 0.72 csys = 12.36 CPU) Result: FAIL Failed 1/106 test programs. 0/2978 subtests failed. Makefile:1337: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 NLNETLABS/Net-DNS-1.05.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports NLNETLABS/Net-DNS-1.05.tar.gz Failed during this command: NLNETLABS/Net-DNS-1.05.tar.gz: make_test NO I've not had 'install ' fail before and need advice on how to proceed to get the module installed so spamassassin is once again happy. The installed perl version is perl-5.22.2. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug