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.  Aix 7.1 rpm command does not work - Dependent module /opt/freeware/lib/libz.a(libz.so.1)

    Posted Fri December 03, 2021 07:47 AM
    Just noticed that rpm quit working.  I downloaded a new version of rpm, but tried re installing rpm but it made no difference

    I suspect it has something to do with the last line in these error message, but cannot figure it ou

    0509-150 Dependent module /opt/freeware/lib/libz.a(libz.so.1) could not be loaded

    See below

    # rpm -qa
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
    0509-022 Cannot load module /opt/freeware/lib/libz.a(libz.so.1).
    0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
    0509-022 Cannot load module libgcc_s.a(shr.o).
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module rpm.
    0509-150 Dependent module /opt/freeware/lib/libz.a(libz.so.1) could not be loaded.
    0509-022 Cannot load module .

    ------------------------------
    william buffington
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Aix 7.1 rpm command does not work - Dependent module /opt/freeware/lib/libz.a(libz.so.1)

    Posted Fri December 03, 2021 08:54 AM

    From where did you install rpm ? 
    Can you please share the output of "lslpp -l | grep rpm"
    If the rpm version is correct then to me it looks like LIBPATH issue.
    Do you have any LIBPATH set ? rpm command should not use library from /opt/freeware/lib/libz.a path.
    Please check if you have some LIBPATH set try running command without LIBPATH.
    Also make sure that there is no other rpm installed apart from AIX rpm command that comes as AIX fileset. 



    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Aix 7.1 rpm command does not work - Dependent module /opt/freeware/lib/libz.a(libz.so.1)

    Posted Fri December 03, 2021 11:13 AM
    I believe I re installed rpm from the Aix tool box sftw download site ( it didn't seem to make much diff)



    LIBPATH is not set


    I found a  /usr/opt/rpm/lib/libz.a   from another server, where it was working.  I copied it over and put in the symbolic link like the other server had.  Then the first error went away.  But now I am running into another problem

    It does not like

    /opt/freeware/lib/libiconv.a

     

     

    # rpm -qa

    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:

            0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).

            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.

            0509-022 Cannot load module libgcc_s.a(shr.o).

            0509-026 System error: A file or directory in the path name does not exist.

            0509-022 Cannot load module rpm.

            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2)

     

     

     

     

    There is a difference between working_server and nonworking_server as far as that file goes

     

    working_server

     

    # lslpp -L | grep -i iconv

      bos.iconv.com             7.1.5.30    C     F    Common Language to Language

      bos.iconv.ucs.com         7.1.5.31    A     F    Unicode Base Converters for

      bos.rte.iconv             7.1.5.31    A     F    Language Converters

      libiconv                    1.16-5    C     R    Character set conversion

                                                       library, portable iconv

    #

     

     

    nonworking_server

     

    # lslpp -L | grep -i iconv

    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:

            0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).

            0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.

            0509-022 Cannot load module libgcc_s.a(shr.o).

            0509-026 System error: A file or directory in the path name does not exist.

            0509-022 Cannot load module rpm.

            0509-150   Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.

            0509-022 Cannot load module .

      bos.iconv.com             7.1.5.30    C     F    Common Language to Language

      bos.iconv.ucs.com         7.1.5.31    A     F    Unicode Base Converters for

      bos.rte.iconv             7.1.5.31    A     F    Language Converters

     

     

    It is missing that last line highlighted in red










  • 4.  RE: Aix 7.1 rpm command does not work - Dependent module /opt/freeware/lib/libz.a(libz.so.1)

    Posted Mon December 06, 2021 02:48 AM
    What file of rpm you installed from AIX toolbox ? Was it in rpm format or AIX install format (installp).
    Can you please share output of 
    "rpm -qa" and "lslpp -l | grep rpm"

    We should not be copying libraries from other server that can create problems as dependencies are not known.
    Best to install rpm.rte from the same level of AIX from AIX install media. 
    What is the level of AIX you have ?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: Aix 7.1 rpm command does not work - Dependent module /opt/freeware/lib/libz.a(libz.so.1)

    Posted Tue December 07, 2021 10:20 AM
    Ok thanks, I did not realize that was not a good idea ( copying files/libraries from other servers).  I realize the rpm.rte that had been installed was downlevel.  I grabbed the most current version and did an install.  After that all the problems went away.




    Thanks for the help





    Gene