AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Thu February 27, 2020 05:35 AM

    Originally posted by: christophe41


    Hello,

    On our AIX 7.1 TL5 partition today we have decided to install   YUM.   The installation of YUM  is successfull.

    Then we have decided to install    bash     using the YUM product.     The installation of    bash   is successfull.   Many thanks to YUM.

     

    But now our   YUM commands    do not work anymore ...

     

    aicci003(root) /tmp/derouet/yum # yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /usr/lib/libintl.a(libintl.so.8).
            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 /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module /usr/lib/libintl.a(libintl.so.8) could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq
     

     

    We have decided to update   the fileset   rpm.rte   from version 4.13.0.3   to   4.13.0.11     and ran   updtvpkg.

    This makes no difference. 

     

    aicci003(root) /tmp/derouet/yum # rpm -q --whatprovides /usr/lib/libintl.a
    gettext-0.19.8.1-4.ppc
    aicci003(root) /tmp/derouet/yum #
    aicci003(root) /tmp/derouet/yum # rpm -qa gettext
    gettext-0.19.8.1-4.ppc
    aicci003(root) /tmp/derouet/yum #
     

     

    What should we check ?  We thank you very much for your help,

    Christophe

     

     

     



  • 2.  Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Thu February 27, 2020 07:23 AM

    Originally posted by: AyappanP


    Update the gettext package to 0.19.8.1-5 level . That will resolve the issue.



  • 3.  RE: Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Mon October 10, 2022 04:22 PM
    Hello Ayappan P, I am getting exact the same error when using yum right after successfully installing yum based on this link -https://developer.ibm.com/articles/configure-yum-on-aix/

    My OS is AIX 7200-05-03-2048. Currently I have gettext package 0.19.7-1.ppc installed. Like you suggested above, I tried updating it to 0.18.8.1-5 level but getting into this infinite dependency requirements (i.e this would require another rpm and that rpm would require another or number of other rpms and so on). Should I try installing DNF ? Most of the rpms that installed for yum appears to have some AIX 6.1 description and I am wondering if I need to have the rpms at a very lower level. But those rpms are the ones listed in the link above I posted (https://developer.ibm.com/articles/configure-yum-on-aix/). 

    Can you help how to get yum working ?

    ------------------------------
    Loganathan Varatharasa
    ------------------------------



  • 4.  RE: Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Wed October 12, 2022 03:51 AM
    Yum is out of support. Try to install dnf. Please checkout the blog about installing dnf in this forum.

    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Thu February 27, 2020 07:50 AM

    Originally posted by: christophe41


    Thank you very much Ayappan    it is OK now.

     

    Can you tell me what happened ? Why did we had to upgrade our      gettext    package ?

     

    Have a nice day,

    Christophe

     



  • 6.  Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Thu February 27, 2020 08:01 AM

    Originally posted by: AyappanP


    Sometimes users environment has LIBPATH set as "/usr/lib:/opt/freeware/lib:/lib" . And some packages has "/usr/lib" first in the library search path. 

    This creates problem for packages that link with GNU libiconv ( /opt/freeware/liblibiconv.a (libiconv.so.2)) which we ship as a rpm in AIX Toolbox. Because AIX base OS also ships /usr/lib/libiconv.a ( shr.o/shr4.o/shr4_64.o) .

    In the latest gettext-0.19.8.1-5 , we have hardcoded the library search path for libiconv.a as "/opt/freeware/lib/" so that setting LIBPATH mentioned above won't affect it.

     



  • 7.  Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Thu February 27, 2020 08:02 AM

    Originally posted by: AyappanP


    I think in your case , i suspect LIBPATH is set as "/usr/lib:/opt/freeware/lib.."



  • 8.  RE: Re: yum Cannot load module /usr/lib/libintl.a(libintl.so.8)

    Posted Mon March 22, 2021 09:47 AM
    Hi Team,

    I have same issue with yum

    I have installed aix 7.2 TL 5 SP1

    whan I run "yum list"

    I get below error

    root@aegeccdev:/tmp/yum1#yum list
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /usr/lib/libintl.a(libintl.so.8).
    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 /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    0509-150 Dependent module /usr/lib/libintl.a(libintl.so.8) could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq

    my gettext package also updated as below  output

    root@aegeccdev:/tmp/yum1#rpm -q --whatprovides /usr/lib/libintl.a
    gettext-0.20.1-2.ppc
    root@aegeccdev:/tmp/yum1#
    root@aegeccdev:/tmp/yum1#rpm -qa gettext
    gettext-0.20.1-2.ppc
    root@aegeccdev:/tmp/yum1#

    please help me to sort out this issue

    if any logs required I will post it

    regards,
    Prasad


    ------------------------------
    Prasad Thorbole
    ------------------------------