in reply to Re: Re: ML/Twig.pm did not return a true value
in thread ML/Twig.pm did not return a true value

In follow up to this my previous post:
bash-2.05$ pwd /home/redden/.cpan/build/XML-Twig-3.09 bash-2.05$ cd .. bash-2.05$ ls Archive-Tar-0.22 File-Spec-0.82 XML-LibXML-1.53 Bundle-libnet-1.00 libnet-1.12 XML-LibXSLT-1.52 Compress-Zlib-1.19 Net-Telnet-3.03 XML-Parser-2.31 CPAN-1.63 TermReadKey-2.21 XML-Twig-3.09 CPAN-WAIT-0.27 Term-ReadLine-Perl-1.0203 XML-Twig-3.09.tar.gz Data-Dumper-2.101 Test-Harness-2.26 Digest-MD5-2.20 Test-Simple-0.47 bash-2.05$ mv XML-Twig-3.09 XML-Twig-3.09_old bash-2.05$ ls Archive-Tar-0.22 File-Spec-0.82 XML-LibXML-1.53 Bundle-libnet-1.00 libnet-1.12 XML-LibXSLT-1.52 Compress-Zlib-1.19 Net-Telnet-3.03 XML-Parser-2.31 CPAN-1.63 TermReadKey-2.21 XML-Twig-3.09_old CPAN-WAIT-0.27 Term-ReadLine-Perl-1.0203 XML-Twig-3.09.tar.gz Data-Dumper-2.101 Test-Harness-2.26 Digest-MD5-2.20 Test-Simple-0.47 bash-2.05$ tar -zxvf XML-Twig-3.09.tar.gz XML-Twig-3.09/ XML-Twig-3.09/t/ XML-Twig-3.09/t/test_xpath_cond.t XML-Twig-3.09/t/test_nav.t XML-Twig-3.09/t/test_pos.t XML-Twig-3.09/t/test_spaces.t XML-Twig-3.09/t/is_field.t XML-Twig-3.09/t/test_erase.t XML-Twig-3.09/t/test1.t XML-Twig-3.09/t/test2.t XML-Twig-3.09/t/test3.t XML-Twig-3.09/t/test4.t XML-Twig-3.09/t/test5.t XML-Twig-3.09/t/test_ignore_elts.t XML-Twig-3.09/t/dummy.dtd XML-Twig-3.09/t/test_pi_handler.t XML-Twig-3.09/t/test_entities.t XML-Twig-3.09/t/test_twig_roots.t XML-Twig-3.09/t/test2_1.exp XML-Twig-3.09/t/test2_1.res XML-Twig-3.09/t/test2_1.xml XML-Twig-3.09/t/test2_2.dtd XML-Twig-3.09/t/test2_2.exp XML-Twig-3.09/t/test2_2.res XML-Twig-3.09/t/test2_2.xml XML-Twig-3.09/t/test2_3.res XML-Twig-3.09/t/test_cdata.t XML-Twig-3.09/t/test_attregexp_cond.t XML-Twig-3.09/t/test_comment_handler.t XML-Twig-3.09/README XML-Twig-3.09/Changes XML-Twig-3.09/speedup XML-Twig-3.09/Makefile.PL XML-Twig-3.09/check_optional_modules XML-Twig-3.09/Twig.pm.slow XML-Twig-3.09/Twig.pm XML-Twig-3.09/MANIFEST bash-2.05$ cd XML-Twig-3.09 XML-Twig-3.09 XML-Twig-3.09_old XML-Twig-3.09.tar.gz bash-2.05$ cd XML-Twig-3.09 XML-Twig-3.09 XML-Twig-3.09_old XML-Twig-3.09.tar.gz bash-2.05$ cd XML-Twig-3.09 bash-2.05$ ls Changes Makefile.PL README t Twig.pm.slow check_optional_modules MANIFEST speedup Twig.pm bash-2.05$ perl M Makefile.PL MANIFEST bash-2.05$ perl M Makefile.PL MANIFEST bash-2.05$ perl M Makefile.PL MANIFEST bash-2.05$ perl M Makefile.PL MANIFEST bash-2.05$ perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite XML::Parser failed to load: Can't locate XML/Par +ser.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/l +ib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/per +l5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at (eval 4) line 3. Writing Makefile for XML::Twig bash-2.05$ ls Changes Makefile MANIFEST speedup Twig.pm check_optional_modules Makefile.PL README t Twig.pm.slow bash-2.05$ make #/usr/bin/perl speedup Twig.pm.slow > Twig.pm Can't locate XML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/5.6. +1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386 +-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at +speedup line 5. BEGIN failed--compilation aborted at speedup line 5. make: *** [Twig.pm] Error 2 bash-2.05$ make test cp Twig.pm blib/lib/XML/Twig.pm PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl +5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&r +untests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/is_field..........XML/Twig.pm did not return a true value at t/is_fi +eld.t line 4. BEGIN failed--compilation aborted at t/is_field.t line 4. t/is_field..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test1.............XML/Twig.pm did not return a true value at t/test1 +.t line 11. BEGIN failed--compilation aborted at t/test1.t line 11. t/test1.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test2.............XML/Twig.pm did not return a true value at t/test2 +.t line 10. BEGIN failed--compilation aborted at t/test2.t line 10. t/test2.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test3.............XML/Twig.pm did not return a true value at t/test3 +.t line 13. BEGIN failed--compilation aborted at t/test3.t line 13. t/test3.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test4.............XML/Twig.pm did not return a true value at t/test4 +.t line 8.BEGIN failed--compilation aborted at t/test4.t line 8. t/test4.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test5.............XML/Twig.pm did not return a true value at t/test5 +.t line 4.BEGIN failed--compilation aborted at t/test5.t line 4. t/test5.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test_attregexp_cond.XML/Twig.pm did not return a true value at t/tes +t_attregexp_cond.t line 4. BEGIN failed--compilation aborted at t/test_attregexp_cond.t line 4. t/test_attregexp_cond.dubious Test returned status 255 (wstat 65280, 0xff00) t/test_cdata........XML/Twig.pm did not return a true value at t/test_ +cdata.t line 6. BEGIN failed--compilation aborted at t/test_cdata.t line 6. t/test_cdata........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_comment_handler.XML/Twig.pm did not return a true value at t/te +st_comment_handler.t line 7. BEGIN failed--compilation aborted at t/test_comment_handler.t line 7. t/test_comment_handler.dubious Test returned status 255 (wstat 65280, 0xff00) t/test_entities.....XML/Twig.pm did not return a true value at t/test_ +entities.t line 5. BEGIN failed--compilation aborted at t/test_entities.t line 5. t/test_entities.....dubious Test returned status 255 (wstat 65280, 0xff00) t/test_erase........XML/Twig.pm did not return a true value at t/test_ +erase.t line 4. BEGIN failed--compilation aborted at t/test_erase.t line 4. t/test_erase........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_ignore_elts..XML/Twig.pm did not return a true value at t/test_ +ignore_elts.t line 4. BEGIN failed--compilation aborted at t/test_ignore_elts.t line 4. t/test_ignore_elts..dubious Test returned status 255 (wstat 65280, 0xff00) t/test_nav..........XML/Twig.pm did not return a true value at t/test_ +nav.t line 7. BEGIN failed--compilation aborted at t/test_nav.t line 7. t/test_nav..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_pi_handler...XML/Twig.pm did not return a true value at t/test_ +pi_handler.t line 9. BEGIN failed--compilation aborted at t/test_pi_handler.t line 9. t/test_pi_handler...dubious Test returned status 255 (wstat 65280, 0xff00) t/test_pos..........XML/Twig.pm did not return a true value at t/test_ +pos.t line 9. BEGIN failed--compilation aborted at t/test_pos.t line 9. t/test_pos..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_spaces.......XML/Twig.pm did not return a true value at t/test_ +spaces.t line 3. BEGIN failed--compilation aborted at t/test_spaces.t line 3. t/test_spaces.......dubious Test returned status 255 (wstat 65280, 0xff00) t/test_twig_roots...XML/Twig.pm did not return a true value at t/test_ +twig_roots.t line 5. BEGIN failed--compilation aborted at t/test_twig_roots.t line 5. t/test_twig_roots...dubious Test returned status 255 (wstat 65280, 0xff00) t/test_xpath_cond...XML/Twig.pm did not return a true value at t/test_ +xpath_cond.t line 4. BEGIN failed--compilation aborted at t/test_xpath_cond.t line 4. t/test_xpath_cond...dubious Test returned status 255 (wstat 65280, 0xff00) FAILED--18 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255 bash-2.05$ make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl +5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&r +untests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/is_field..........XML/Twig.pm did not return a true value at t/is_fi +eld.t line 4. BEGIN failed--compilation aborted at t/is_field.t line 4. t/is_field..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test1.............XML/Twig.pm did not return a true value at t/test1 +.t line 11. BEGIN failed--compilation aborted at t/test1.t line 11. t/test1.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test2.............XML/Twig.pm did not return a true value at t/test2 +.t line 10. BEGIN failed--compilation aborted at t/test2.t line 10. t/test2.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test3.............XML/Twig.pm did not return a true value at t/test3 +.t line 13. BEGIN failed--compilation aborted at t/test3.t line 13. t/test3.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test4.............XML/Twig.pm did not return a true value at t/test4 +.t line 8.BEGIN failed--compilation aborted at t/test4.t line 8. t/test4.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test5.............XML/Twig.pm did not return a true value at t/test5 +.t line 4.BEGIN failed--compilation aborted at t/test5.t line 4. t/test5.............dubious Test returned status 255 (wstat 65280, 0xff00) t/test_attregexp_cond.XML/Twig.pm did not return a true value at t/tes +t_attregexp_cond.t line 4. BEGIN failed--compilation aborted at t/test_attregexp_cond.t line 4. t/test_attregexp_cond.dubious Test returned status 255 (wstat 65280, 0xff00) t/test_cdata........XML/Twig.pm did not return a true value at t/test_ +cdata.t line 6. BEGIN failed--compilation aborted at t/test_cdata.t line 6. t/test_cdata........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_comment_handler.XML/Twig.pm did not return a true value at t/te +st_comment_handler.t line 7. BEGIN failed--compilation aborted at t/test_comment_handler.t line 7. t/test_comment_handler.dubious Test returned status 255 (wstat 65280, 0xff00) t/test_entities.....XML/Twig.pm did not return a true value at t/test_ +entities.t line 5. BEGIN failed--compilation aborted at t/test_entities.t line 5. t/test_entities.....dubious Test returned status 255 (wstat 65280, 0xff00) t/test_erase........XML/Twig.pm did not return a true value at t/test_ +erase.t line 4. BEGIN failed--compilation aborted at t/test_erase.t line 4. t/test_erase........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_ignore_elts..XML/Twig.pm did not return a true value at t/test_ +ignore_elts.t line 4. BEGIN failed--compilation aborted at t/test_ignore_elts.t line 4. t/test_ignore_elts..dubious Test returned status 255 (wstat 65280, 0xff00) t/test_nav..........XML/Twig.pm did not return a true value at t/test_ +nav.t line 7. BEGIN failed--compilation aborted at t/test_nav.t line 7. t/test_nav..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_pi_handler...XML/Twig.pm did not return a true value at t/test_ +pi_handler.t line 9. BEGIN failed--compilation aborted at t/test_pi_handler.t line 9. t/test_pi_handler...dubious Test returned status 255 (wstat 65280, 0xff00) t/test_pos..........XML/Twig.pm did not return a true value at t/test_ +pos.t line 9. BEGIN failed--compilation aborted at t/test_pos.t line 9. t/test_pos..........dubious Test returned status 255 (wstat 65280, 0xff00) t/test_spaces.......XML/Twig.pm did not return a true value at t/test_ +spaces.t line 3. BEGIN failed--compilation aborted at t/test_spaces.t line 3. t/test_spaces.......dubious Test returned status 255 (wstat 65280, 0xff00) t/test_twig_roots...XML/Twig.pm did not return a true value at t/test_ +twig_roots.t line 5. BEGIN failed--compilation aborted at t/test_twig_roots.t line 5. t/test_twig_roots...dubious Test returned status 255 (wstat 65280, 0xff00) t/test_xpath_cond...XML/Twig.pm did not return a true value at t/test_ +xpath_cond.t line 4. BEGIN failed--compilation aborted at t/test_xpath_cond.t line 4. t/test_xpath_cond...dubious Test returned status 255 (wstat 65280, 0xff00) FAILED--18 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255 bash-2.05$ su Password: bash-2.05# make install Manifying blib/man3/XML::Twig.3 Installing /usr/lib/perl5/man/man3/XML::Twig.3 Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/XML/Twig/.packl +ist Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perlloc +al.pod bash-2.05# exit

Replies are listed 'Best First'.
Re: Re: Re: Re: ML/Twig.pm did not return a true value
by hossman (Prior) on Dec 07, 2002 at 00:11 UTC
    Warning: prerequisite XML::Parser failed to load: Can't locate XML/Par +ser.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/l +ib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/per +l5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at (eval 4) line 3. ... #/usr/bin/perl speedup Twig.pm.slow > Twig.pm Can't locate XML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/5.6. +1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386 +-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at +speedup line 5. BEGIN failed--compilation aborted at speedup line 5. make: *** [Twig.pm] Error 2

    there's your problem right there. It can't load XML::Parser.

    I'm not sure why it can't load it, since it seems to be installed (based on your directory listing) but it appears that you are installing these modules in your own personal directory instead of system wide ... which means that by default, perl scripts you run don't know about it unless you tell them. (in this case, the installer for XML::Twig is trying to run a perl script which is looking for XML::Parser)

    Try setting the PERL5LIB environment variable in your shell to know about your personal CPAN lib directory (see the "I am not root, how can I install a module in a personal directory?" qestion of CPANs docs)

    The only thing i'm not clear on is why perl Makefile.PL didn't die as soon as it couldn't find XML::Parser ... it's clearly marked as a dependancy, and should have given you a usefull error message.