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.  Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 12:33 AM
    I'm having an issue where when trying to utilize rpm it's not finding any of the libraries needed even though it seems like they are installed.
    root@snadc80o /tmp/yum # rpm -ivh *
    error: Failed dependencies:
    libc.a(shr.o) is needed by curl-7.52.1-1.ppc
    libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
    libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
    libz.a(libz.so.1) is needed by curl-7.52.1-1.ppc
    libc.a(shr.o) is needed by db-4.8.24-3.ppc
    libpthread.a(shr_xpg5.o) is needed by db-4.8.24-3.ppc
    librtl.a(shr.o) is needed by db-4.8.24-3.ppc
    libc.a(shr.o) is needed by gdbm-1.8.3-5.ppc
    libc.a(shr.o) is needed by gettext-0.19.7-1.ppc
    libiconv.a(shr4.o) is needed by gettext-0.19.7-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by gettext-0.19.7-1.ppc
    libxcurses.a(shr42.o) is needed by gettext-0.19.7-1.ppc
    libc.a(shr.o) is needed by glib2-2.14.6-2.ppc
    libiconv.a(shr4.o) is needed by glib2-2.14.6-2.ppc
    libintl.a(libintl.so.1) is needed by glib2-2.14.6-2.ppc
    libpthreads.a(shr_xpg5.o) is needed by glib2-2.14.6-2.ppc
    libc.a(shr.o) is needed by pysqlite-1.1.7-2.ppc
    librtl.a(shr.o) is needed by pysqlite-1.1.7-2.ppc
    libbsd.a(shr.o) is needed by python-2.7.10-1.ppc
    libbz2.a(libbz2.so.1) is needed by python-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-2.7.10-1.ppc
    libcrypt.a(shr.o) is needed by python-2.7.10-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
    libcurses.a(shr42.o) is needed by python-2.7.10-1.ppc
    libintl.a(libintl.so.1) is needed by python-2.7.10-1.ppc
    libnsl.a(shr.o) is needed by python-2.7.10-1.ppc
    libpthreads.a(shr_comm.o) is needed by python-2.7.10-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by python-2.7.10-1.ppc
    librtl.a(shr.o) is needed by python-2.7.10-1.ppc
    libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
    libtcl8.4.so is needed by python-2.7.10-1.ppc
    libtk8.4.so is needed by python-2.7.10-1.ppc
    libz.a(libz.so.1) is needed by python-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-devel-2.7.10-1.ppc
    libpthreads.a(shr_comm.o) is needed by python-devel-2.7.10-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by python-devel-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-pycurl-7.19.3-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc
    librtl.a(shr.o) is needed by python-pycurl-7.19.3-1.ppc
    libc.a(shr.o) is needed by readline-6.1-2.ppc
    libcurses.a(shr42.o) is needed by readline-6.1-2.ppc
    libc.a(shr.o) is needed by sqlite-3.15.2-1.ppc
    libpthread.a(shr_xpg5.o) is needed by sqlite-3.15.2-1.ppc
    libc.a(shr.o) is needed by yum-metadata-parser-1.1.4-2.ppc
    librtl.a(shr.o) is needed by yum-metadata-parser-1.1.4-2.ppc
    libxml2.a(libxml2.so.2) is needed by yum-metadata-parser-1.1.4-2.ppc

    Downloaded and installed the latest version per IBM support but that didn't help at all:
    root@snadc80o /tmp/yum # lslpp -L|grep rpm
    rpm.rte 4.15.1.3 C F RPM Package Manager
    AIX-rpm 7.1.5.30-3 C R Virtual Package for libraries
    (/bin/rpm)

    I noticed on the forums some talk about a problem with LIBPATH is set, but it's not:
    root@snadc80o /tmp/yum # echo $LIBPATH

    root@snadc80o /tmp/yum #

    any ideas?
    halp!

    ------------------------------
    Jon Goudy
    ------------------------------


  • 2.  RE: Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 10:20 AM
    rpm packages resolve dependencies with rpm packages. Hence in AIX we have a virtual rpm package AIX-rpm that list libraries those are not provided by rpm packages.
    In your case looks like AIX-rpm package is not updated properly. Please run the following command to update virtual rpm package and then try again to install rpms.

    $ updtvpkg

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



  • 3.  RE: Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 10:44 AM
    Tried that before, but just tried again to make sure, and no change:
    root@snadc80o /root # updtvpkg
    Please wait.../usr/bin/lslpp: Error while processing fileset EMC.Symmetrix.aix.rte.
    /usr/bin/lslpp: Cannot match fileset name with fileset ID.

    root@snadc80o /root #
    root@snadc80o /home/djgoudy # rpm -ivh unzip-6.0-3.aix6.1.ppc.rpm
    error: Failed dependencies:
    libc.a(shr.o) is needed by unzip-6.0-3.ppc

    root@snadc80o /tmp/yum # rpm -ivh *
    error: Failed dependencies:
    libc.a(shr.o) is needed by curl-7.52.1-1.ppc
    libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
    libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
    libz.a(libz.so.1) is needed by curl-7.52.1-1.ppc
    libc.a(shr.o) is needed by db-4.8.24-3.ppc
    libpthread.a(shr_xpg5.o) is needed by db-4.8.24-3.ppc
    librtl.a(shr.o) is needed by db-4.8.24-3.ppc
    libc.a(shr.o) is needed by gdbm-1.8.3-5.ppc
    libc.a(shr.o) is needed by gettext-0.19.7-1.ppc
    libiconv.a(shr4.o) is needed by gettext-0.19.7-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by gettext-0.19.7-1.ppc
    libxcurses.a(shr42.o) is needed by gettext-0.19.7-1.ppc
    libc.a(shr.o) is needed by glib2-2.14.6-2.ppc
    libiconv.a(shr4.o) is needed by glib2-2.14.6-2.ppc
    libintl.a(libintl.so.1) is needed by glib2-2.14.6-2.ppc
    libpthreads.a(shr_xpg5.o) is needed by glib2-2.14.6-2.ppc
    libc.a(shr.o) is needed by pysqlite-1.1.7-2.ppc
    librtl.a(shr.o) is needed by pysqlite-1.1.7-2.ppc
    libbsd.a(shr.o) is needed by python-2.7.10-1.ppc
    libbz2.a(libbz2.so.1) is needed by python-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-2.7.10-1.ppc
    libcrypt.a(shr.o) is needed by python-2.7.10-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
    libcurses.a(shr42.o) is needed by python-2.7.10-1.ppc
    libintl.a(libintl.so.1) is needed by python-2.7.10-1.ppc
    libnsl.a(shr.o) is needed by python-2.7.10-1.ppc
    libpthreads.a(shr_comm.o) is needed by python-2.7.10-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by python-2.7.10-1.ppc
    librtl.a(shr.o) is needed by python-2.7.10-1.ppc
    libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
    libtcl8.4.so is needed by python-2.7.10-1.ppc
    libtk8.4.so is needed by python-2.7.10-1.ppc
    libz.a(libz.so.1) is needed by python-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-devel-2.7.10-1.ppc
    libpthreads.a(shr_comm.o) is needed by python-devel-2.7.10-1.ppc
    libpthreads.a(shr_xpg5.o) is needed by python-devel-2.7.10-1.ppc
    libc.a(shr.o) is needed by python-pycurl-7.19.3-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc
    librtl.a(shr.o) is needed by python-pycurl-7.19.3-1.ppc
    libc.a(shr.o) is needed by readline-6.1-2.ppc
    libcurses.a(shr42.o) is needed by readline-6.1-2.ppc
    libc.a(shr.o) is needed by sqlite-3.15.2-1.ppc
    libpthread.a(shr_xpg5.o) is needed by sqlite-3.15.2-1.ppc
    libc.a(shr.o) is needed by yum-metadata-parser-1.1.4-2.ppc
    librtl.a(shr.o) is needed by yum-metadata-parser-1.1.4-2.ppc
    libxml2.a(libxml2.so.2) is needed by yum-metadata-parser-1.1.4-2.ppc
    root@snadc80o /tmp/yum

    Currently the OS is at TL05 SP04, I'm going to try to update to the latest SP and see if that helps at all.

    ------------------------------
    Jon Goudy
    ------------------------------



  • 4.  RE: Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 12:27 PM
    Just fyi, updated to 7.1 TL05 SP08 and no change.
    root@snadc80o /home/djgoudy # oslevel -s
    7100-05-08-2114

    Libraries all seem to be up to date on the system.


    ------------------------------
    Jon Goudy
    ------------------------------



  • 5.  RE: Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 01:36 PM
    Looks like command is failing.
    Can you please provide output of following command.

    $ rpm -q AIX-rpm --provides

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



  • 6.  RE: Problem with rpm not finding any libraries

    Posted Tue June 29, 2021 02:19 PM
    root@snadc80o /root # rpm -q AIX-rpm --provides
    /bin/awk
    /bin/bsh
    /bin/csh
    /bin/env
    /bin/ksh
    /bin/perl
    /bin/sh
    /bin/tsh
    /sbin/install-info
    /unix
    /usr/bin/awk
    /usr/bin/bsh
    /usr/bin/csh
    /usr/bin/env
    /usr/bin/ksh
    /usr/bin/perl
    /usr/bin/sh
    /usr/bin/tsh
    AIX-rpm = 7.1.5.33-4
    awk
    env
    perl
    unix
    root@snadc80o /root #

    ------------------------------
    Jon Goudy
    ------------------------------



  • 7.  RE: Problem with rpm not finding any libraries

    Posted Wed June 30, 2021 07:14 AM
    From output I can see the libraries are not listed as part of AIX-rpm virtual package and hence you are getting error.
    But when you trying to update because of fileset error command is not completing successfully.
    You need to fix the fileset issue. Check with lppchk command what is the issue. 
    Once updtvpkg command is successful you should be able to install rpm packages.

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



  • 8.  RE: Problem with rpm not finding any libraries

    Posted Wed June 30, 2021 09:51 AM
    Gotcha, so updtvpkg isn't finishing due to the errors with the missing filesets on the EMC software.

    I was able to install the EMC software then remove it and got a clean lppchk and then a clean updtvpkg:
    root@snadc80o /tmp/EMC # updtvpkg
    Please wait...
    root@snadc80o /tmp/EMC #

    After that, the rpm installs are now working!!
    root@snadc80o /tmp # rpm -ivh unzip-6.0-3.aix6.1.ppc.rpm
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:unzip-6.0-3 ################################# [100%]
    root@snadc80o /tmp #

    Thanks a ton Sanket!!!

    ------------------------------
    Jon Goudy
    ------------------------------



  • 9.  RE: Problem with rpm not finding any libraries

    Posted Tue July 20, 2021 01:09 PM
    You are welcome !!

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