Experts,
I need your help on installing Perl XML Parser.

What is the complete procedure to install XML modules from a build HP machine to another HP machine?

I want to use XML:XPath in my perl script and I learn that I need Expat, XML::Parser, and XML::XPath modules.

I downloaded expat-1.95.7.tar.gz, XML-Parser-2.34.tar.gz, and XML-XPath-1.13.tar.gz. Following the instruction I installed Expat, XML-Parser, and XML-XPath to my build machine.

The additions put to the build machine include:
./site_perl/5.6.1/PA-RISC2.0-11.11-NTM/auto/XML ./site_perl/5.6.1/PA-RISC2.0-11.11-NTM/XML ./site_perl/5.6.1/XML
and a few library under /usr/lib:
$ ls libexp* llibexpat.a libexpat.sl libexpat.sl.5.0 libexpat.la libexpat.sl.5

I noticed that the I could run Perl XML::XPath fine.

But when I copied the modules to my test machine (also HP): all the directories and files mentioned above, plus "/opt/perl5/lib/5.6.1/PA-RISC2.0-11.11-NTM/perllocal.pod" which I believe tells where to find the right Perl module, my test script failed to run.

The errors are:

hput4# /opt/perl5/bin/perl -wc /home/chlai/rje/test.cgi Can't load '/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0-11.11-NTM/auto/X +ML/Parser/Expat/Expat.sl' for module XML::Parser::Expat: No such file + or directory at /opt/perl5/lib/5.6.1/PA-RISC2.0-11.11-NTM/DynaLoader +.pm line 206. at /opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0-11.11-NTM/XML/Parser.pm +line 14 Compilation failed in require at /opt/perl5/lib/site_perl/5.6.1/PA-RIS +C2.0-11.11-NTM/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /opt/perl5/lib/site_perl/5.6.1/PA +-RISC2.0-11.11-NTM/XML/Parser.pm line 18. Compilation failed in require at /opt/perl5/lib/site_perl/5.6.1/XML/XP +ath/XMLParser.pm line 7. BEGIN failed--compilation aborted at /opt/perl5/lib/site_perl/5.6.1/XM +L/XPath/XMLParser.pm line 7. Compilation failed in require at /opt/perl5/lib/site_perl/5.6.1/XML/XP +ath.pm line 13. BEGIN failed--compilation aborted at /opt/perl5/lib/site_perl/5.6.1/XM +L/XPath.pm line 13. Compilation failed in require at /home/chlai/rje/test.cgi line 1. BEGIN failed--compilation aborted at /home/chlai/rje/test.cgi line 1.

I checked, the Expat.sl actually IS there!

What did I miss? What else should I do to make the XML Parser work?

Any help is appreciated!

Kevin chlai@lucent.com

20040702 Edit by Corion: Added formatting


In reply to Installing Perl XML modules on HP machines by canhai

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.