Question & Answer
Question
|
# perl test_xml.pl
Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so' for module XML::LibXML:
0509-022 Cannot load module /opt/freeware/lib/libxml2.a(libxml2.so.2). 0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded. 0509-152 Member libiconv.so.2 is not found in archive 0509-022 Cannot load module /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so. 0509-150 Dependent module /opt/freeware/lib/libxml2.a(libxml2.so.2) could not be loaded. at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 193. at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/LibXML.pm line 156. BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/XML/LibXML.pm line 156. Compilation failed in require at test_xml.pl line 2. BEGIN failed--compilation aborted at test_xml.pl line 2. |
Answer
|
# lslpp -w /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so
File Fileset Type
---------------------------------------------------------------------------- /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so perl.rte File |
|
# rpm -q --whatprovides /opt/freeware/lib/libxml2.a
libxml2-2.9.10-1.ppc |
|
Can't load '/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so' for module XML::LibXML:
0509-022 Cannot load module /opt/freeware/lib/libxml2.a(libxml2.so.2).
|
|
0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
0509-152 Member libiconv.so.2 is not found in archive
|
|
# dump -Hv /opt/freeware/lib/libxml2.a
/opt/freeware/lib/libxml2.a[libxml2.so.2]: ***Import File Strings***
INDEX PATH BASE MEMBER 0 /opt/freeware/lib:/usr/lib:/lib 1 libgcc_s.a shr.o 2 liblzma.a liblzma.so.5 -->3 /opt/freeware/lib libiconv.a libiconv.so.2 4 libc.a shr.o 5 libz.a libz.so.1 6 libpthread.a shr_xpg5.o |
|
# ldd /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so
/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so needs:
/usr/lib/libpthreads.a(shr_xpg5.o) /usr/lib/libc.a(shr.o) /usr/lib/libxml2.a(libxml2.so.2) /unix /usr/lib/libpthreads.a(shr_comm.o) /usr/lib/libcrypt.a(shr.o) /usr/lib/libpthread.a(shr_xpg5.o) -->/usr/lib/libiconv.a(shr4.o) |
|
# echo $LIBPATH
/usr/lib:/opt/freeware/lib |
- Unset the LIBPATH:
|
# unset LIBPATH
|
|
# ldd /usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so
/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML/LibXML/LibXML.so needs: /usr/lib/libpthreads.a(shr_xpg5.o) /usr/lib/libc.a(shr.o) /opt/freeware/lib/libxml2.a(libxml2.so.2) /unix /usr/lib/libpthreads.a(shr_comm.o) /usr/lib/libcrypt.a(shr.o) /opt/freeware/lib/libgcc_s.a(shr.o) /opt/freeware/lib/liblzma.a(liblzma.so.5) --> /opt/freeware/lib/libiconv.a(libiconv.so.2) /opt/freeware/lib/libz.a(libz.so.1) /usr/lib/libpthread.a(shr_xpg5.o) |
| # perl test_xml.pl |
- AIX Open Source is built against the Open Source packages, so the LIBPATH should not be set.
- Users can examine their application errors, and determine the correct LIBPATH based on errors, and the 'dump' and 'ldd' commands.
- See more libiconv details in AIX Open Source: Member libiconv.so.2 is not found in archive
| SUPPORT | ||||
|---|---|---|---|---|
|
A) For all questions or issues with AIX Toolbox for Linux Applications ("AIX Toolbox") packages, the support is handled by the AIX Open Source Team in the forum: The AIX Open Source Team provides support through the forum, only. 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 the Perl Community page (Perl Monks is a popular community for Perl usage discussions). ** Cases opened to address AIX Toolbox problems will be canceled and users will be referred to the Open Source Forum.
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:
C) Opening an AIX Support Case If additional assistance is required due to issues with the perl.rte file set (see preceding B section), 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: |
Related Information
Was this topic helpful?
Document Information
Modified date:
03 June 2021
UID
ibm16458245