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.  Cannot install gcc 7.2 on AIX 7.2

    Posted Fri April 20, 2018 03:45 AM

    Originally posted by: BuSchu


    I tried to install gcc 7.2 on AIX 7.2:

    # :-)rpm -ihv gcc-7.2.0-1.aix7.2.ppc.rpm
    error: Failed dependencies:
            gcc-cpp = 7.2.0-1 is needed by gcc-7.2.0-1.ppc
            info is needed by gcc-7.2.0-1.ppc

    The only info version is 6.3:

    # :-)rpm -ihv info-6.3-1.aix6.1.ppc.rpm 
    error: Failed dependencies:
            libncurses.a(libncurses.so.6) is needed by info-6.3-1.ppc

    The only ncurses version is 6.0:

    # :-)rpm -ihv ncurses-6.0-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            libstdc++.a(libstdc++.so.6) is needed by ncurses-6.0-1.ppc

    There is no version 6.xx of libstdc++ for 7.2, only for 7.1, and, of course, I was unable to install it:

    # :-)rpm -ihv libstdcplusplus-6.3.0-1.aix7.1.ppc.rpm 
    error: Failed dependencies:
            libgcc = 6.3.0-1 is needed by libstdc++-6.3.0-1.ppc
            AIX-rpm < 7.2.0.0 is needed by libstdc++-6.3.0-1.ppc

    Because AIX-rpm is part of the OS, I think it's impossible to install this last package on AIX 7.2

    Is it really not possible to install gcc 7.2 on on AIX 7.2? Are there really packages on the toolbox page which cannot be installed because of unsatisfied dependencies?

    Regards

    Burkhard Schultheis



  • 2.  Re: Cannot install gcc 7.2 on AIX 7.2

    Posted Fri April 20, 2018 06:27 AM

    Originally posted by: Nitish Mishra


    Hi !!

    All the gcc rpms and versions are available here: ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/gcc/ for AIX 7.2.

    But you DON'T need to install libstdc++-6.3.0. You can directly install libstdc++-7.2.0 and it does provide libstdc++.so.6 which is required for ncurses.

    So, easy way is,  download required gcc (and all other needed sub-rpms) and their dependencies like info, ncurses etc from aix toolbox in one directory and simply give rpm -ivh * command.

    Still if you see any issue, just reply I will sort it out.

     

    Thanks and Regards



  • 3.  Re: Cannot install gcc 7.2 on AIX 7.2

    Posted Fri April 20, 2018 07:13 AM

    Originally posted by: sanket


    The easiest way to install all dependencies austomatically is by using YUM.

    Install yum on your AIX by running this script yum.sh on your AIX machine.