Getting error when I am using XML::Parsar in perl files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhavanirayala
    New Member
    • Jul 2007
    • 25

    Getting error when I am using XML::Parsar in perl files?

    Hello,

    I am using XML::Parsar in my perl file.
    but when I run the perl file, getting the following erro even I have the parser.pm and Dynaloader.pm files in the lib path.
    The error is:

    Can't load '/usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Ex pat: dlopen: /usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so: A file or directory in the path name does not exist. at /usr/local/lib/perl5/5.6.1/aix/DynaLoader.pm line 206. at /usr/local/lib/perl5/site_perl/5.6.1/aix/XML/Parser.pm line 15
    Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.1/aix/XML/Parser.pm line 15.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.1/aix/XML/Parser.pm line 19.
    Compilation failed in require at addition_bkp.pl line 10.
    BEGIN failed--compilation aborted at addition_bkp.pl line 10.

    Anybody have any idea...

    Thanks,
    Bhavani
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    You are getting this error because the module you are trying to use is either not installed or is not installed where perl is looking for it.

    So you will need to install the module or tell perl where to look for the module by using the lib pragma.

    --Kevin

    Comment

    Working...