nac has asked for the wisdom of the Perl Monks concerning the following question:

Total newb here. Please be patient! I'm not an aspiring perl programmer, just trying to get some software running on my computer
I'm using fedora 20
Got a big package of files with a bunch of perl scripts. We'll call them "Validators." The validators rely on a few perl modules that can't be downloaded through yum or cpan. These perl modules come with the validator package in a tarball. the validator instructions say to copy the tarball to /usr/lib/perl5/auto and extract it.I extract the tarball then go back to /usr/lib/perl5/auto then run:

Makefile.PL
make
make test (which fails)


when i try to run the validators, the main program which i'm trying to get up and running, i get a failure in the realm of:

can't locate XML::DOM::BagOfTricks in @INC
XML::DOM::BagOfTricks is a perlmod which was extracted from the tarball mention earlier

Basically I just need to figure out how to get XML::DOM::BagOfTricks to get reckognized by @INC

below is a link to my scratchpad. The top half is the readme for XML::DOM::BagOfTricks and the bottom half is the installation instructions for the "Validators"

nac's scratchpad
here is a list of what is in /usr/lib/perl5/auto:
arybase
attributes B
Carp
DB_File
Devel
Digest
Fcntl
File
Filter
GDBM_File
Hash
I18N
IO
IPC
Math
MIME
more_modules.zip
mro
NDBM_File
ODBM_File
Opcode
PerlIO
POSIX
re
sdbm
SDBM_File Sys
Text
Tie
Time
Unicode
XML
XML-DOM-BagOfTricks-0.05

more_modules.zip is the package i was told to move to this directory. when i unzipped it i got XML, XML-DOM-BagOfTricks-0.05.

as you can see on my scratchpad, the instructions say to do Makefile.PL here, but that doesn't work. The nearest place i could find Makefile.PL was in XML-DOM-BagOfTricks. I did Makefile.PL, then make, then make test, but make test failed.

Replies are listed 'Best First'.
Re: Makefile.PL no such directory
by Corion (Patriarch) on Jan 08, 2015 at 21:36 UTC

    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.

      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
      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