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

sudo install failed dependencies

  • 1.  sudo install failed dependencies

    Posted Fri February 05, 2021 06:21 PM
    Trying to install the new sudo on AIX 7.1 from the toolbox download site.

    Command I am using to install:
    rpm -ihv \
    sudo-1.9.5p2-1.aix6.1.ppc.rpm \
    gcc-8-1.aix7.1.ppc.rpm \
    gcc8-8.3.0-4.aix7.1.ppc.rpm \
    gcc-cpp-8-1.aix7.1.ppc.rpm \
    gcc8-cpp-8.3.0-4.aix7.1.ppc.rpm \
    gettext-0.20.2-1.aix6.1.ppc.rpm \
    glib2-2.56.1-2.aix6.1.ppc.rpm \
    libffi-3.2.1-3.aix6.1.ppc.rpm \
    info-6.6-2.aix6.1.ppc.rpm \
    libgcc-8-1.aix7.1.ppc.rpm \
    libgcc8-8.3.0-4.aix7.1.ppc.rpm \
    libgomp-8-1.aix7.1.ppc.rpm \
    libiconv-1.16-1.aix6.1.ppc.rpm \
    libstdcplusplus-8-1.aix7.1.ppc.rpm \
    libstdcplusplus8-8.3.0-4.aix7.1.ppc.rpm \
    libtextstyle-0.20.2-1.aix6.1.ppc.rpm \
    libunistring-0.9.10-1.aix6.1.ppc.rpm \
    libxml2-2.9.10-1.aix6.1.ppc.rpm \
    openldap-2.4.56-1.aix6.1.ppc.rpm \
    cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm \
    db-6.2.38-3.aix6.1.ppc.rpm \
    gmp-6.1.2-1.aix6.1.ppc.rpm \
    mpfr-4.0.2-2.aix6.1.ppc.rpm \
    libmpc-1.1.0-1.aix6.1.ppc.rpm \
    zlib-1.2.11-2.aix6.1.ppc.rpm \
    bash-5.0.18-1.aix6.1.ppc.rpm \
    ncurses-6.2-2.aix6.1.ppc.rpm \
    sed-4.8-1.aix6.1.ppc.rpm \
    xz-libs-5.2.5-1.aix6.1.ppc.rpm

    Output from the command:
    error: failed dependencies:
    rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by gcc8-8.3.0-4
    gcc <= 9.1.0 conflicts with gcc8-8.3.0-4
    libgcc >= 8.3.0 is needed by gettext-0.20.2-1
    libgomp >= 8.3.0 is needed by gettext-0.20.2-1
    libgomp.a(libgomp.so.1) is needed by gettext-0.20.2-1
    libstdc++ >= 8.3.0 is needed by gettext-0.20.2-1
    libgcc <= 9.1.0 conflicts with libgcc8-8.3.0-4
    libgomp8 is needed by libgomp-8-1
    libgcc >= 8.3.0 is needed by libtextstyle-0.20.2-1
    libgcc >= 8.3.0 is needed by libunistring-0.9.10-1
    libgcc >= 8.3.0 is needed by libxml2-2.9.10-1
    libcrypto.a(libcrypto.so.1.0.2) is needed by openldap-2.4.56-1
    libgcc >= 8.3.0-1 is needed by openldap-2.4.56-1
    libssl.a(libssl.so.1.0.2) is needed by openldap-2.4.56-1
    libgcc >= 8.3.0-1 is needed by db-6.2.38-3
    libgcc >= 8.3.0 is needed by mpfr-4.0.2-2
    libgcc >= 8.3.0-1 is needed by ncurses-6.2-2
    libstdc++ >= 8.3.0-1 is needed by ncurses-6.2-2
    rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by ncurses-6.2-2
    libgcc >= 8.3.0 is needed by xz-libs-5.2.5-1

    List of files downloaded:

    # ls
    bash-5.0.18-1.aix6.1.ppc.rpm libiconv-1.16-1.aix6.1.ppc.rpm
    cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm libmpc-1.1.0-1.aix6.1.ppc.rpm
    db-6.2.38-3.aix6.1.ppc.rpm libstdcplusplus-8-1.aix7.1.ppc.rpm
    gcc-8-1.aix7.1.ppc.rpm libstdcplusplus8-8.3.0-4.aix7.1.ppc.rpm
    gcc-cpp-8-1.aix7.1.ppc.rpm libtextstyle-0.20.2-1.aix6.1.ppc.rpm
    gcc8-8.3.0-4.aix7.1.ppc.rpm libunistring-0.9.10-1.aix6.1.ppc.rpm
    gcc8-cpp-8.3.0-4.aix7.1.ppc.rpm libxml2-2.9.10-1.aix6.1.ppc.rpm
    gettext-0.20.2-1.aix6.1.ppc.rpm mpfr-4.0.2-2.aix6.1.ppc.rpm
    glib2-2.56.1-2.aix6.1.ppc.rpm ncurses-6.2-2.aix6.1.ppc.rpm
    gmp-6.1.2-1.aix6.1.ppc.rpm openldap-2.4.56-1.aix6.1.ppc.rpm
    info-6.6-2.aix6.1.ppc.rpm sed-4.8-1.aix6.1.ppc.rpm
    libffi-3.2.1-3.aix6.1.ppc.rpm sudo-1.9.5p2-1.aix6.1.ppc.rpm
    libgcc-8-1.aix7.1.ppc.rpm xz-libs-5.2.5-1.aix6.1.ppc.rpm
    libgcc8-8.3.0-4.aix7.1.ppc.rpm yum.sh
    libgomp-8-1.aix7.1.ppc.rpm zlib-1.2.11-2.aix6.1.ppc.rpm
    libgomp8-8.3.0-4.aix7.1.ppc.rpm

    It would appear that in the case of example 'libgcc' version 8.3.0 is required but the download site only provides 8.1

    How do I get the versions that I need to continue with the install under AIX 7.1 or am I missing something else?



    ------------------------------
    Stephen Andrew
    ------------------------------

    #AIXOpenSource


  • 2.  RE: sudo install failed dependencies

    Posted Mon February 08, 2021 10:14 AM
    Hi Stephen,

    you*re mixing up some stuff.

    For example: 
    gcc-8-1.aix7.1.ppc.rpm \
    gcc8-8.3.0-4.aix7.1.ppc.rpm \

    you're trying to install the gcc twice.
    1. try rpm -Uvh == update, instead of i == install
    2. get rid of all duplicates with same scheme from above. (gcc-cpp, libgcc, libstdcplusplus,...)
    3. depending on you're installed files and their version it might be, that what worked for me, will have to be extended by you.
    I downloaded the stuff using the ftp- and not the http-side ..... possibly ending in less files.

    On AIX 7.1 it was (for me) sufficient to update/install by:

    rpm -Uvh \
    sudo-1.9.5p2-1.aix6.1.ppc.rpm \
    bash-5.0-1.aix6.1.ppc.rpm
    cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm \
    db-4.8.24-3.aix6.1.ppc.rpm \
    gcc-8.3.0-2.aix7.1.ppc.rpm \
    gcc-cpp-8.3.0-2.aix7.1.ppc.rpm \
    gettext-0.19.8.1-5.aix6.1.ppc.rpm \
    glib2-2.56.1-2.aix6.1.ppc.rpm \
    info-6.6-2.aix6.1.ppc.rpm \
    libffi-3.2.1-3.aix6.1.ppc.rpm \
    libgcc-8.3.0-2.aix7.1.ppc.rpm \
    libiconv-1.16-1.aix6.1.ppc.rpm \
    libmpc-1.1.0-1.aix6.1.ppc.rpm \
    libstdcplusplus-8.3.0-2.aix7.1.ppc.rpm \
    libunistring-0.9.9-2.aix6.1.ppc.rpm \
    libxml2-2.9.7-1.aix6.1.ppc.rpm \
    mpfr-4.0.2-2.aix6.1.ppc.rpm \
    ncurses-6.1-2.aix6.1.ppc.rpm \
    openldap-2.4.48-1.aix6.1.ppc.rpm \
    xz-5.2.5-1.aix6.1.ppc.rpm \
    xz-libs-5.2.5-1.aix6.1.ppc.rpm \
    xz-lzma-compat-5.2.5-1.aix6.1.ppc.rpm \
    zlib-1.2.11-1.aix6.1.ppc.rpm

    regards,


    ------------------------------
    Juergen Maehlmann
    ------------------------------



  • 3.  RE: sudo install failed dependencies

    Posted Wed February 10, 2021 11:15 AM
    I am actually having the same issue as Stephen. I believe we are having issue with libgcc not with gcc library. The only difference mine is that I am running on AIX_7.2 server.

    # rpm -ivh libgcc8-8.3.0-4.aix7.2.ppc.rpm
    error: Failed dependencies:
            libgcc <= 9.1.0 conflicts with libgcc8-8.3.0-4.ppc

    Not sure how to remediate the issue. Can someone please help!



    ------------------------------
    Sanket Mehta
    ------------------------------



  • 4.  RE: sudo install failed dependencies

    Posted Thu February 11, 2021 02:18 AM
    Hi Sanket, 
    Looks like you have gcc higher version installed from some other source.
    Hopefully that will work with sudo and you need not to install libgcc but if it is not working then you will have to remove existing libgcc and install from toolbox.

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



  • 5.  RE: sudo install failed dependencies

    Posted Fri February 12, 2021 01:00 AM
    Hi Sanket,

    I have always downloaded from the AIX toolbox site. Now I am having issue with libiconv. Pleas suggest from below.

    # rpm -qa|grep -i libi
    libiconv-1.15-1.ppc
    # rpm -ivh gettext-0.20.2-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            libiconv >= 1.16 is needed by gettext-0.20.2-1.ppc
            libtextstyle = 0.20.2-1 is needed by gettext-0.20.2-1.ppc
            libtextstyle.a(libtextstyle.so.0) is needed by gettext-0.20.2-1.ppc
            libunistring >= 0.9.9-2 is needed by gettext-0.20.2-1.ppc
            libunistring.a(libunistring.so.2) is needed by gettext-0.20.2-1.ppc
            libxml2 >= 2.9.9 is needed by gettext-0.20.2-1.ppc
    # rpm -Uvh libiconv-1.16-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            gettext >= 0.19.8.1-1 is needed by libiconv-1.16-1.ppc

    What is happening is that if I try to install gettext then it will show me dependency for libiconv and if I try to install libiconv then it is showing me for gettext so I am not sure what to do next here? Please suggest.

    thanks,
    Sanket



    ------------------------------
    Sanket Mehta
    ------------------------------



  • 6.  RE: sudo install failed dependencies

    Posted Thu February 11, 2021 03:06 AM
    Hi Sanket,

    Since you have the older non multi version libgcc already installed, you also need to have the corresponding meta package libgcc-8-1.aix7.2.ppc.rpm downloaded to install libgcc8.
    This is due  to multi version changes as at the same time we can't have older libgcc and multi version libgcc8 installed.

    Please download both libgcc8 and it's meta package libgcc-8-1.aix7.2.ppc.rpm and run the update command.
    Same for other gcc related packages as well.

    # ls libgcc* libstdc*
    libgcc-8-1.aix7.2.ppc.rpm libstdcplusplus-8-1.aix7.2.ppc.rpm
    libgcc8-8.3.0-4.aix7.2.ppc.rpm libstdcplusplus8-8.3.0-4.aix7.2.ppc.rpm

    # rpm -Uvh libgcc-8-1.aix7.2.ppc.rpm libgcc8-8.3.0-4.aix7.2.ppc.rpm libstdcplusplus8-8.3.0-4.aix7.2.ppc.rpm libstdcplusplus-8-1.aix7.2.ppc.rpm

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:libgcc8-8.3.0-4 ################################# [ 17%]
    2:libgcc-1:8-1 ################################# [ 33%]
    3:libstdc++8-8.3.0-4 ################################# [ 50%]
    4:libstdc++-1:8-1 ################################# [ 67%]
    Cleaning up / removing...
    5:libstdc++-8.3.0-3 ################################# [ 83%]
    6:libgcc-8.3.0-3 ################################# [100%]

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



  • 7.  RE: sudo install failed dependencies

    Posted Fri February 12, 2021 01:00 AM
    Thanks. I will try and let you know. ​

    ------------------------------
    Sanket Mehta
    ------------------------------



  • 8.  RE: sudo install failed dependencies

    Posted Fri February 12, 2021 02:45 AM
    Hi all,

    meta-packages are needed for all rpm's in gcc8 found.

    For all in

    AIX[6.1|71|7.2]/gcc8/*8-8*.ppc.rpm

    you need the corresponding meta-package from 

    AIX[6.1|71|7.2]/gcc/*8-1.aix[6.1|71|7.2],ppc.rpm

    AIX 7.1:
    gcc-8-1.aix7.1.ppc.rpm
    gcc-cplusplus-8-1.aix7.1.ppc.rpm
    gcc-cpp-8-1.aix7.1.ppc.rpm
    gcc-gfortran-8-1.aix7.1.ppc.rpm
    libgcc-8-1.aix7.1.ppc.rpm
    libgomp-8-1.aix7.1.ppc.rpm
    libstdcplusplus-8-1.aix7.1.ppc.rpm
    libstdcplusplus-devel-8-1.aix7.1.ppc.rpm

    are actually needed to install:
    gcc8-8.3.0-4.aix7.1.ppc.rpm
    gcc8-cplusplus-8.3.0-4.aix7.1.ppc.rpm
    gcc8-cpp-8.3.0-4.aix7.1.ppc.rpm
    gcc8-gfortran-8.3.0-4.aix7.1.ppc.rpm
    libgcc8-8.3.0-4.aix7.1.ppc.rpm
    libgfortran8-8.3.0-4.aix7.1.ppc.rpm
    libgomp8-8.3.0-4.aix7.1.ppc.rpm
    libstdcplusplus8-8.3.0-4.aix7.1.ppc.rpm
    libstdcplusplus8-devel-8.3.0-4.aix7.1.ppc.rpm

    regards,

    ------------------------------
    Juergen Maehlmann
    ------------------------------



  • 9.  RE: sudo install failed dependencies

    Posted Tue February 22, 2022 02:29 PM
    Thank you for this very helpful comment. So I was able to solve my dependency hell when I tried to install python3-pandas.

    ------------------------------
    Markus Feichtinger
    System Administrator and Team Leader Core Systems
    @Bundesanstalt Statistik Österreich
    ------------------------------



  • 10.  RE: sudo install failed dependencies

    Posted Fri July 29, 2022 04:04 AM
    Hi.
    I am having the same issue as above and was hoping you could tell me if you ever resolved:
    gcc <= 9.1.0 conflicts with gcc8-8.3.0-4

    This particular error is preventing me from continuing.  What did you do to get rid of this error..... I cannot find a version of 9.1.0 on the server.
    I have tried various files to try to get around the 9.1.0 conflicts but the dependencies prevent me from not using the 8-8.3 versions.

    thanks
    Jane Caldwell-Myers

    ------------------------------
    Jane Caldwell-Myers
    ------------------------------



  • 11.  RE: sudo install failed dependencies

    Posted Tue August 02, 2022 12:25 PM
    I think gcc-9.1.0 is installed from some other source than AIX toolbox.
    Do you need gcc-9.1.0 ? Can you remove gcc-9.1.0 and see if that works for you?

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



  • 12.  RE: sudo install failed dependencies

    Posted Wed August 03, 2022 02:46 PM
    hI...
    I ended up breaking down the files to update/install and had success.
    rpm -Uvh
    gcc-8-1.aix7.1.ppc.rpm
    gcc-cpp-8-1.aix7.1.ppc.rpm
    gcc8-8.3.0-6.aix7.1.ppc.rpm
    gmp-6.2.1-1.aix6.1.ppc.rpm
    libmpc-1.2.1-1.aix6.1.ppc.rpm
    mpfr-4.1.0-1.aix6.1.ppc.rpm
    gcc8-cpp-8.3.0-6.aix7.1.ppc.rpm
    sed-4.8-1.aix6.1.ppc.rpm
    libstdcplusplus-8.3.0-2.aix7.1.ppc.rpm
    gettext-0.19.8.1-1.aix6.1.ppc.rpm
    libgcc-8.3.0-2.aix7.1.ppc.rpm
    The libgcc-8.3.0-2.aix7.1.ppc.rpm caused the error :
    libgcc <= 9.1.0 conflicted with (installed) libgcc8-8,3,0-6.ppc

    So I executed
    rpm -Uvh libgcc8-8.3.0-6.ppc libgcc-1:8-1.ppc.
    This was successful so I then executed   
    rpm -ivh libstdcplusplus-8-1.aix7.1.ppc.rpm  libstdcplusplus8-8.3.0-6.aix7.1.ppc.rpm
    This was successful; the <=9.1.0 error never reappears and I was able to continue on updating/installing the remainder of the files.

    I did not have a gcc9.1.0 version installed (which the error message eludes to)

    Thanks for help, hope this helps someone else!


    ------------------------------
    Jane Caldwell-Myers
    ------------------------------



  • 13.  RE: sudo install failed dependencies

    Posted Tue February 09, 2021 03:16 AM
    Hi Stephan,

    As Juergen mentioned you need to run the update command.
    Please check this blog post if want to know more about  the gcc changes.
    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2020/12/17/aix-gcc-multi-version-support-improvements?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&tab=recentcommunityblogsdashboard

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