Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  yum installation issue

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

    I have aix 7.2 TL5 SP1

    I installed yum file set from below link

    Configuring YUM and creating local repositories on IBM AIX
    IBM Developer remove preview
    Configuring YUM and creating local repositories on IBM AIX
    This tutorial explains the different methods to install YUM, create local YUM repositories of AIX Toolbox RPM packages, and configure YUM.
    View this on IBM Developer >

    I used offline method to configure YUM , so i download yum_bundle.tar  file and installed of rpm from its

    but when I run "yum list" command i get below error

    root@aegeccdev:/#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

    I have latest rpm.rte version that is 4.15.1.1

    kindly help me so solve this issue

    Regards,
    Prasad

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

    #AIXOpenSource


  • 2.  RE: yum installation issue

    Posted Mon March 22, 2021 02:30 PM
    Hi Prasad,

    Please let me know the output of below commands.

    ls -l /usr/lib/libintl.a
    dump -Hov /usr/lib/libintl.a
    rpm -qa | grep gettext
    rpm -qa | grep libiconv
    rpm -qf /usr/lib/libintl.a

    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: yum installation issue

    Posted Tue March 23, 2021 02:22 AM
    Hi Sangamesh,

    please find below command output

    root@aegeccdev:/#ls -l /usr/lib/libintl.a
    lrwxrwxrwx 1 root system 32 Mar 05 01:09 /usr/lib/libintl.a -> ../../opt/freeware/lib/libintl.a

    root@aegeccdev:/#dump -Hov /usr/lib/libintl.a

    /usr/lib/libintl.a[libintl.so.8]:

    ***Object Module Header***
    # Sections Symbol Ptr # Symbols Opt Hdr Len Flags
    4 0x0000d6e8 1216 72 0x3002
    Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
    Timestamp = "Jul 09 09:09:21 2020"
    Magic = 0x1df (32-bit XCOFF)

    ***Optional Header***
    Tsize Dsize Bsize Tstart Dstart
    0x00008b4c 0x00000884 0x0000005c 0x10000128 0x20000c74

    SNloader SNentry SNtext SNtoc SNdata
    0x0004 0x0000 0x0001 0x0002 0x0002

    TXTalign DATAalign TOC vstamp entry
    0x0007 0x0004 0x2000133c 0x0001 0xffffffff

    maxSTACK maxDATA SNbss magic modtype
    0x00000000 0x80000000 0x0003 0x010b RE

    ***Loader Section***
    Loader Header Information
    VERSION# #SYMtableENT #RELOCent LENidSTR
    0x00000001 0x00000082 0x000000fc 0x00000076

    #IMPfilID OFFidSTR LENstrTBL OFFstrTBL
    0x00000005 0x00001820 0x000007d5 0x00001896


    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /opt/freeware/lib:/usr/lib:/lib
    1 libgcc_s.a shr.o
    2 libiconv.a libiconv.so.2
    3 libc.a shr.o
    4 libpthreads.a shr_xpg5.o

    /usr/lib/libintl.a[libintl.so.1]:

    ***Object Module Header***
    # Sections Symbol Ptr # Symbols Opt Hdr Len Flags
    5 0x0000ff44 2640 72 0x7002
    Flags=( EXEC DYNLOAD SHROBJ LOADONLY DEP_SYSTEM )
    Timestamp = "Jan 04 15:08:42 2008"
    Magic = 0x1df (32-bit XCOFF)

    ***Optional Header***
    Tsize Dsize Bsize Tstart Dstart
    0x00007be2 0x000003f6 0x00000080 0x10000150 0x20000d32

    SNloader SNentry SNtext SNtoc SNdata
    0x0004 0x0000 0x0001 0x0002 0x0002

    TXTalign DATAalign TOC vstamp entry
    0x0005 0x0003 0x20001028 0x0001 0xffffffff

    maxSTACK maxDATA SNbss magic modtype
    0x00000000 0x00000000 0x0003 0x010b RE

    ***Loader Section***
    Loader Header Information
    VERSION# #SYMtableENT #RELOCent LENidSTR
    0x00000001 0x00000052 0x000000da 0x0000003e

    #IMPfilID OFFidSTR LENstrTBL OFFstrTBL
    0x00000003 0x00001208 0x000002d6 0x00001246


    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /usr/vac/lib:/usr/lib:/lib
    1 libc.a shr.o
    2 libiconv.a shr4.o

    /usr/lib/libintl.a[libintl.so.9]:

    ***Object Module Header***
    # Sections Symbol Ptr # Symbols Opt Hdr Len Flags
    4 0x0000e326 1090 72 0x7002
    Flags=( EXEC DYNLOAD SHROBJ LOADONLY DEP_SYSTEM )
    Timestamp = "Mar 09 09:58:51 2017"
    Magic = 0x1df (32-bit XCOFF)

    ***Optional Header***
    Tsize Dsize Bsize Tstart Dstart
    0x000099d4 0x000008b4 0x0000005c 0x10000128 0x30000afc

    SNloader SNentry SNtext SNtoc SNdata
    0x0004 0x0000 0x0001 0x0002 0x0002

    TXTalign DATAalign TOC vstamp entry
    0x0007 0x0003 0x30001244 0x0001 0xffffffff

    maxSTACK maxDATA SNbss magic modtype
    0x00000000 0x80000000 0x0003 0x010b RE

    ***Loader Section***
    Loader Header Information
    VERSION# #SYMtableENT #RELOCent LENidSTR
    0x00000001 0x00000075 0x000000fd 0x00000082

    #IMPfilID OFFidSTR LENstrTBL OFFstrTBL
    0x00000004 0x000016f4 0x00000649 0x00001776


    ***Import File Strings***
    INDEX PATH BASE MEMBER
    0 /opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib
    1 libpthreads.a shr_xpg5.o
    2 libc.a shr.o
    3 /opt/freeware/lib libiconv.a libiconv.so.2
    root@aegeccdev:/#


    root@aegeccdev:/#rpm -qa | grep gettext
    gettext-0.20.1-2.ppc
    root@aegeccdev:/#
    root@aegeccdev:/#rpm -qa | grep libiconv
    libiconv-1.16-5.ppc
    root@aegeccdev:/#
    root@aegeccdev:/#rpm -qf /usr/lib/libintl.a
    gettext-0.20.1-2.ppc
    root@aegeccdev:/#

    regards,
    prasad


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



  • 4.  RE: yum installation issue

    Posted Tue March 23, 2021 08:14 AM
    Hi Prasad,

    Please let me know
     From where you installed the gettext and libiconv rpm packages.
     Confirm If the current installed python is from yum_bundle or python has been updated.
     If any LIBPATH is set.

    Could you try updating gettext rpm package from AIX Toolbox and see if this solve the issue.

    ------------------------------
    SANGAMESH
    ------------------------------