IBM Support

Perl error: libexpat.a(libexpat.so.1) could not be loaded

Question & Answer


Question

How can I resolve libexpat.a(libexpat.so.1)errors?
$ perl rootcrs.pl -unlock -crshome /oracle/app/12.2.0/grid
Can't load '/usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat:         
0509-022 Cannot load module /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
        0509-150   Dependent module libexpat.a(libexpat.so.1) could not be loaded.
        0509-022 Cannot load module libexpat.a(libexpat.so.1).
        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.20.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so.
        0509-150   Dependent module /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/auto/XML/Parser/Expat/Expat.so could not be loaded. at /usr/opt/perl5/lib/5.20.1/aix-thread-multi/DynaLoader.pm line 193.
 at /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/XML/Parser.pm line 18.
Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/XML/Parser.pm line 18.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi/XML/Parser.pm line 22.
Compilation failed in require at crsutils.pm line 793.
BEGIN failed--compilation aborted at crsutils.pm line 793.
Compilation failed in require at crsinstall.pm line 300.
BEGIN failed--compilation aborted at crsinstall.pm line 300.
Compilation failed in require at rootcrs.pl line 165.
BEGIN failed--compilation aborted at rootcrs.pl line 165.

Answer

libexpat.a is not provided by perl.rte.

This application (in this example, the application is an Oracle script) has a dependency on Expat, an open source stream-oriented XML parser library.

An expat package is available on the AIX Toolbox for Linux Applications (Toolbox) download site

For example:

# rpm -qpl expat-2.2.9-2.aix6.1.ppc.rpm | grep libexpat

/opt/freeware/lib/libexpat.a

/opt/freeware/lib64/libexpat.a

/usr/lib/libexpat.a

/usr/lib64/libexpat.a

Open Source RPM packages from the AIX Toolbox for Linux Applications are not supported through IBM support cases.
  • Consult with your application support team for their requirements.
  • See the following Support section for details about AIX Open Source support.
SUPPORT

A) For all questions or issues with Toolbox packages, the support is handled by the AIX Open Source Team in the forum:

https://community.ibm.com/community/user/power/communities/community-home?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9


The AIX Open Source Team only provides support through the forum. They answer questions if possible, but they don't own the packages or formally support them. For true expertise in usage of each package, users should consult the community for each respective package.  For Perl communities, see https://www.perl.org/community.html (Perl Monks is a popular community for Perl usage discussions).

** Cases opened to address Toolbox problems will be canceled and users will be referred to the Open Source Forum.
If you experience technical issues accessing the AIX Open Source community or forum, refer to the footer of the IBM Community forum page.
There is email, and "Contact Us" information for community support

B) If there is a problem with installing or updating perl.rte, or loading a perl.rte executable file, you can open an AIX Case (See C) for assistance.

Examples of perl.rte issues supported through AIX Support:

- Errors updating or the perl.rte file set
- Commands from the perl.rte file set do not run, or core dump

Example of a perl.rte loading issue:

# Perl -v
exec(): 0509-036 Cannot load program Perl because of the following errors:
        0509-150   Dependent module libperl.a(libperl.o) could not be loaded.
        0509-022 Cannot load module libperl.a(libperl.o).
        0509-026 System error: A file or directory in the path name does not exist.

 
This example would be handled through an IBM AIX Support case, and the support team would help resolve the missing modules.

To learn what is provided and supported by the perl.rte file set:

#  lslpp -f perl.rte

C) Opening an AIX Support Case

If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1.  Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2.  Capture any logs or data relevant to the situation.

3.  Contact IBM to open a case:

   -For electronic support, see the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, see the web page:
      https://www.ibm.com/planetwide/

4.  Provide a clear, concise description of the issue.

5.  If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For guidance, see: Working with IBM AIX Support: Collecting snap data

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cw3dAAA","label":"RPMS: AIX Toolbox for Linux"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
04 December 2020

UID

ibm16378298