By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

error while parsing XML file in AIX

P: 3
Hi
while am running perl script which parses an XML file in AIX following error is getting:(i have given use XML::parser in the script)

Can't load '/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: 05
09-022 Cannot load module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
0509-150 Dependent module libexpat.a(libexpat.so.0) could not be loaded.
0509-022 Cannot load module libexpat.a(libexpat.so.0).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
0509-150 Dependent module /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so could not b
e loaded. at /usr/opt/perl5/lib/5.8.2/aix-thread-multi/DynaLoader.pm line 229.
at /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/XML/Parser.pm line 14
Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/XML/Parser.pm line 18.
Compilation failed in require at reformat.pl line 3.
BEGIN failed--compilation aborted at reformat.pl line 3.

Could anyone please help me out??...its urgent
Jul 25 '07 #1
Share this Question
Share on Google+
2 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
Silly, question, but do you have the XML::parser module installed on the machine? If so, you may want to try to re-install it. Just an idea.

Regards,

Jeff
Jul 25 '07 #2

P: 1
Silly, question, but do you have the XML::parser module installed on the machine? If so, you may want to try to re-install it. Just an idea.

Regards,

Jeff
I had the same problem on a AIX6.1 system, where the XML::Parser::Expat can not find a dependent shared library libexpat.so.O. Same library exists there on a AIX 5.2 system as /usr/lib/libexpat.a -> ../../opt/freeware/lib/libexpat.a. So I got to download and install expat-1.95.7-4.aix5.1.ppc.rpm from http://www-03.ibm.com/systems/p/os/a.../download.html to solve this.

---
$ ldd /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/XML/Parser/Expat/Expat.so needs:
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libc_r.a(shr.o)
Cannot find libexpat.a(libexpat.so.0) <<<<<<<<<<< missing lib
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)
Nov 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.