canhai has asked for the wisdom of the Perl Monks concerning the following question:
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:and a few library under /usr/lib:./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
$ 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing Perl XML modules on HP machines
by nightwatch (Scribe) on Jul 02, 2004 at 18:31 UTC | |
by canhai (Initiate) on Jul 06, 2004 at 12:51 UTC |