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

I have re-installed it and with the make test command I get the following output (shortened version)
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.
Interesting problem.

Replies are listed 'Best First'.
Re: Re: Re: ML/Twig.pm did not return a true value
by matth (Monk) on Dec 06, 2002 at 16:24 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.