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.


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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.