in reply to NetAddr-IP-4.007 compilation in Fedora fails miserably

You don't show us what exactly you are doing, but somehow, you are using Perl to run your Makefile:

Bareword found where operator expected at Makefile line 31

Makefile is a program to be run by the make command and not by Perl. The usual sequence for installing a module in Perl is to do

cpan IP::NetAddr

... or, if you have already downloaded and unpacked the distribution from CPAN yourself:

perl -w Makefile.PL make make test make install

See also the Tutorials section on installing modules.

Replies are listed 'Best First'.
Re^2: NetAddr-IP-4.007 compilation in Fedora fails miserably
by h3x (Acolyte) on Oct 11, 2007 at 07:14 UTC
    ok you are right. I left out the details. I did the perl -w Makefile.pl inside the Net-Addr file. It does everything ok but the make test fails and has only a 9.02% success. here is a full error report and am really hoping it helps.
    Test returned status 2 (wstat 512, 0x200) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/imhoff.t 255 65280 3 6 200.00% 1-3 t/loops.t 255 65280 21 41 195.24% 1-21 t/masklen.t 2 512 ?? ?? % ?? t/new-store.t 1 256 7 3 42.86% 2 8-9 t/old-store.t 1 256 7 3 42.86% 2 8-9 t/over-arr.t 2 512 ?? ?? % ?? t/over-qq.t 2 512 ?? ?? % ?? t/relops.t 2 512 ?? ?? % ?? t/short.t 1 256 19 1 5.26% 1 t/v4-coalesce.t 255 65280 21 41 195.24% 1-21 t/v4-compact.t 2 512 ?? ?? % ?? t/v4-compplus.t 2 512 ?? ?? % ?? t/v4-hostenum.t 2 512 ?? ?? % ?? t/v4-re.t 255 65280 299 597 199.67% 1-299 t/v4-split-bulk.t 255 65280 ?? ?? % ?? t/v4-split-list.t 2 512 ?? ?? % ?? t/v4-sprefix.t 2 512 ?? ?? % ?? t/v4-xprefix.t 2 512 ?? ?? % ?? t/v6-re.t 255 65280 ?? ?? % ?? t/v6-split-bulk.t 255 65280 ?? ?? % ?? t/wildcard.t 2 512 ?? ?? % ?? 32 subtests skipped. Failed 21/21 test scripts, 0.00% okay. 343/377 subtests failed, 9.02% +okay. make: *** [test_dynamic] Error 2

      This looks pretty abysmal and doesn't match up with the CPAN Testers results for NetAddr::IP 4.007. Please make sure you have all prerequisites installed:

      perl Makefile.PL

      will list all modules which NetAddr::IP needs that are missing in your Perl distribution. You need to install these as well. The cpan tool will do that autmatically for you.

      If you are sure that you have all the right prerequisites installed already, you can run the tests in isolation or in verbose mode to see why they are failing:

      perl -Ilib -w t/wildcard.t

      will run a test stand-alone and

      make test TEST_VERBOSE=1

      will show you all tests and how they fail. Post the output of at least one of the two, preferrably only of one test program, because likely there is some fundamental failure with one of the underlying Perl modules.