in reply to Can't locate ... in @INC

The validator instructions for installing XML::DOM::BagOfTricks are wrong.

The way to (manually) install a module from a tarball is to extract the tarbal to some directory, like /tmp, then, in that directory, to run

perl Makefile.PL make make test make install

You could also try to install the module automatically by using the OS package manager (I think rpm for RedHat?): http://rpmfind.net/linux/rpm2html/search.php?query=perl%28XML%3A%3ADOM%3A%3ABagOfTricks%29 - I don't know rpm but the following could work:

rpm perl-XML-DOM-BagOfTricks

If that fails, you could also use cpan XML::DOM::BagOfTricks. But you should always use the OS package manager before manually trying to install modules into the Perl supplied by your OS.

Replies are listed 'Best First'.
Re^2: Makefile.PL no such directory
by nac (Novice) on Jan 08, 2015 at 22:05 UTC
    then i tried make -d test -d being the option for debugging information and that spit out about 3 pages of gibberish. i can print it if you'd like
Re^2: Makefile.PL no such directory
by nac (Novice) on Jan 08, 2015 at 22:04 UTC
    Hey thanks Corion. I did all that just now but make test failed:


    t/XML-DOM-BagOfTricks.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    Files=1, Tests=0, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.17 cusr 0.02 csys = 0.24 CPU)
    Result: FAIL
    Failed 1/1 test programs. 0/0 subtests failed.
    make: *** test_dynamic Error 2
      The 'make test' output you provided doesn't tell us much about the reason that the test failed. Is there a more helpful message emitted prior to the stuff you copy'n'pasted ?
      If not, run
      perl -Mblib t/XML-DOM-BagOfTricks.t
      and let us know what that outputs.

      Cheers,
      Rob