error while parsing XML file in AIX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sherihan2007
    New Member
    • Jul 2007
    • 3

    error while parsing XML file in AIX

    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::Ex pat: 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(libe xpat.so.0) could not be loaded.
    0509-022 Cannot load module libexpat.a(libe xpat.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
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    • Balthes
      New Member
      • Nov 2007
      • 1

      #3
      Solution

      Originally posted by numberwhun
      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::Ex pat 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.rp m 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(s hr_xpg5.o)
      /usr/lib/libc_r.a(shr.o)
      Cannot find libexpat.a(libe xpat.so.0) <<<<<<<<<<< missing lib
      /usr/lib/libc.a(shr.o)
      /usr/lib/libpthreads.a(s hr_comm.o)
      /unix
      /usr/lib/libcrypt.a(shr. o)
      Last edited by Balthes; Nov 19 '07, 10:39 AM. Reason: Solved the problem

      Comment

      Working...