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
Expand all | Collapse all

cannot load program /usr/opt/freeware/bin/rpm when installing gcc

  • 1.  cannot load program /usr/opt/freeware/bin/rpm when installing gcc

    Posted Mon July 10, 2017 11:05 PM

    Originally posted by: cd182017


    When I tried to install gcc or execute cabextract, the error as follows shows, could you help me with this?

    #rpm -ivh gcc-7.1.0-7.aix7.2.ppc.rpm
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
            0509-150   Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
            0509-152   Member shr4.o is not found in archive
            0509-022 Cannot load module rpm.
            0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
            0509-022 Cannot load module .

    ...


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: cannot load program /usr/opt/freeware/bin/rpm when installing gcc

    Posted Tue July 11, 2017 02:41 AM

    Originally posted by: sangameshm


    Hi Chris,

     

    Looks you have installed gettext & libiconv rpm package from bullfreeware.

    Some of the package won't work if we mix Toolbox & bullfreeware packages.

    Toolbox libintl.a(ibintl.so.1) has been built with AIX /usr/lib/libiconv.a(shr4.o).

     

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

    As a workaround can you see if setting LIBPATH=/usr/lib:/opt/freeware/lib works ?

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software