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.  Problems installing gcc for ACE12

    Posted Sun May 01, 2022 01:51 AM
    Hello!
    I have some problems with installing gcc for ACE1.
    I has installed rpm.rte version 4.15.1.3 and the following libraries:
    root@dc3-p870-acedev /home/root/lib8# ls -l
    total 62264
    -rw-r--r-- 1 root system 997108 Apr 30 13:35 libgcc8-8.3.0-6.aix7.2.ppc.rpm
    -rw-r--r-- 1 root system 1420421 Apr 30 13:36 libgomp8-8.3.0-6.aix7.2.ppc.rpm
    -rw-r--r-- 1 root system 12732402 Apr 30 13:33 libstdcplusplus8-8.3.0-6.aix7.2.ppc.rpm
    -rw-r--r-- 1 root system 16722240 Apr 30 13:33 libstdcplusplus8-devel-8.3.0-6.aix7.2.ppc.rpm
    But when I try to install gcc I get the following errors:
    root@dc3-p870-acedev /home/root/gcc8# rpm -ich gcc8-8.3.0-6.aix7.2.ppc.rpm
    error: Failed dependencies:
    gcc8-cpp = 8.3.0-6 is needed by gcc8-8.3.0-6.ppc
    info is needed by gcc8-8.3.0-6.ppc
    libiconv.a(libiconv.so.2) is needed by gcc8-8.3.0-6.ppc
    sed is needed by gcc8-8.3.0-6.ppc
    root@dc3-p870-acedev /home/root/gcc8# rpm -ivh gcc8-cpp-8.3.0-6.aix7.2.ppc.rpm
    error: Failed dependencies:
    gcc8 = 8.3.0-6 is needed by gcc8-cpp-8.3.0-6.ppc
    gmp >= 6.1.2 is needed by gcc8-cpp-8.3.0-6.ppc
    libgmp.a(libgmp.so.10) is needed by gcc8-cpp-8.3.0-6.ppc
    libiconv.a(libiconv.so.2) is needed by gcc8-cpp-8.3.0-6.ppc
    libmpc >= 1.1.0 is needed by gcc8-cpp-8.3.0-6.ppc
    libmpc.a(libmpc.so.3) is needed by gcc8-cpp-8.3.0-6.ppc
    libmpfr.a(libmpfr.so.6) is needed by gcc8-cpp-8.3.0-6.ppc
    mpfr >= 4.0.2 is needed by gcc8-cpp-8.3.0-6.ppc
    zlib >= 1.2.11-1 is needed by gcc8-cpp-8.3.0-6.ppc

    Can you help me with these mistakes?




    ------------------------------
    Andrii Voloshyn
    ------------------------------


  • 2.  RE: Problems installing gcc for ACE12

    Posted Mon May 02, 2022 06:20 AM

    Unless you install DNF and have a local repository, it's an iterative death of a thousand cuts.

    If gcc8 says it needs gcc8-cpp and gcc8-cpp says it needs gcc8 then you need to install both at the same time.

    You need:

    info, probably >= 6.6 due to other cross-dependencies.

    sed, probably >= 4.8 (same issue)

    libiconv, probably >= 1.16

    gmp and gmp-devel,  >= 6.1.2

    libmpc and libmpc-devel, >= 1.1.0

    mpfr and mpfr-devel,>= 4.0.2

    zlib >= 1.2.11-1

    As you install some of these, they may ask for further dependencies.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 3.  RE: Problems installing gcc for ACE12
    Best Answer

    Posted Mon May 02, 2022 09:54 AM
    Hi Andrii, 

    dnf is the best way to install any package from AIX toolbox.
    Otherwise you will have to resolve dependencies manually by looking at the output of every install
    If you can not install/setup dnf then you need to first download all the packages mentioned and try to install them together and then it may list newer dependencies.
    Then download newer dependencies and try to install again together and repeat until you have resolved all dependencies. This is the way if you do not have dnf.

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



  • 4.  RE: Problems installing gcc for ACE12

    Posted Tue May 03, 2022 06:27 AM
    Hello!
    Thank you for you support!
    I installed yum and then I was able to install gcc successfully!
    I still have one little problem with the requirements forMQ 9.2:
    -bash-4.4$ mqconfig
    mqconfig: Analyzing AIX 7.2 TL3 (powerpc) settings for IBM MQ V9.2

    Operating System Patches
    Applications using user trace hooks fail when trace is enabled PASS

    System V Semaphores
    semmni 9 sets [Auto Tuned] PASS
    semmns 14 semaphores [Auto Tuned] PASS

    System V Shared Memory
    shmmni 1 sets [Auto Tuned] PASS

    System Settings
    maxuproc 8 of 16384 processes (0%) IBM>=1024 PASS

    Unicode Filesets used by IBM MQ Data Conversion
    bos.iconv.ucs.com Unicode Converters for AIX Code Sets/Fonts PASS
    bos.iconv.ucs.ebcdic Unicode Converters for EBCDIC Code Sets WARN
    bos.iconv.ucs.pc Unicode Converters for Additional PC Code Sets WARN

    Current User Limits (mqm)
    nofiles (-Hn) unlimited files IBM>=10240 PASS
    nofiles (-Sn) unlimited files IBM>=10240 PASS
    data (-Sd) unlimited kbytes IBM>=unlimited PASS
    stack (-Ss) unlimited kbytes IBM>=unlimited PASS

    mqconfig: Any values listed in the "Current User Limits" section are resource
    limits for the user who ran mqconfig.

    If the user account that is used to invoke this script (mqm) is not
    the same as the user account that is used to start the queue
    manager, then the assessed values will not be accurate.

    If you normally start your queue managers as the mqm user, you
    should switch to mqm and run mqconfig there.

    If other members of the mqm group also start queue managers, all
    those members should run mqconfig, to ensure that their limits are
    suitable for IBM MQ.

    mqconfig: A PASS score means your system meets the minimum IBM
    recommendations but busy systems might need higher limits to run
    production workloads.

    For performance-critical environments, further performance testing
    should always be conducted using workloads that are representative
    of the real volume.


    Can you tell me how I can fix this?
    bos.iconv.ucs.ebcdic Unicode Converters for EBCDIC Code Sets WARN
    bos.iconv.ucs.pc Unicode Converters for Additional PC Code Sets WARN


    ------------------------------
    Andrii Voloshyn
    ------------------------------



  • 5.  RE: Problems installing gcc for ACE12

    Posted Tue May 03, 2022 07:01 AM

    > bos.iconv.ucs.ebcdic 7.2.0.0 COMMITTED Unicode Converters for EBCDIC
    Code Sets
    > bos.iconv.ucs.pc 7.2.0.0 COMMITTED Unicode Converters for
    Additional PC Code Sets

    They're both optional parts of the AIX installation.  Get them from the NIM server or DVD image.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 6.  RE: Problems installing gcc for ACE12

    Posted Tue May 03, 2022 07:59 AM
    Can I set it up some other way?
    Because I don't have NIM server or DVD image.


    ------------------------------
    Andrii Voloshyn
    ------------------------------



  • 7.  RE: Problems installing gcc for ACE12

    Posted Tue May 03, 2022 10:27 AM

    Not really.

    No NIM nor DVD ?  Where did you install AIX from ?



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 8.  RE: Problems installing gcc for ACE12

    Posted Tue May 03, 2022 11:33 AM
    I cloned rootvg fron antother LPAR
    Ok, I will try to come up with something on account of the dvd

    ------------------------------
    Andrii Voloshyn
    ------------------------------



  • 9.  RE: Problems installing gcc for ACE12

    Posted Thu May 19, 2022 12:23 AM
    You can get the images from ESS:


    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------