Open Source Development

Open Source Development

Connect, learn, share, and engage with IBM Power.

 View Only
Expand all | Collapse all

I have AIX 7.2 Operating system,help us to install gcc 13 package in our server with steps.I downloaded the rpm's for gcc13 and did install the rpm's but still it says gcc not found.

  • 1.  I have AIX 7.2 Operating system,help us to install gcc 13 package in our server with steps.I downloaded the rpm's for gcc13 and did install the rpm's but still it says gcc not found.

    Posted 3 days ago

    root@favmdqm1: :/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/13 # gcc -maix64 -v
    ksh: gcc:  not found.

    root@favmdqm1: :/users/u410203/DNF # rpm -qa | grep gcc
    libgcc13-13.3.0-1.ppc
    libgcc-13-1.ppc
    libgcc-13-2.ppc

    root@favmdqm1: :/ # rpm -qa|grep -i libgcc*
    libgcc13-13.3.0-1.ppc
    libgcrypt-1.10.3-1.ppc
    libgcc-13-1.ppc
    libgcc-13-2.ppc
    root@favmdqm1: :/ # rpm -qa|grep -i libstdc*
    libstdc++13-13.3.0-1.ppc
    libstdc++-13-1.ppc
    libstdc++13-devel-13.3.0-1.ppc
    libstdc++-13-2.ppc

    root@favmdqm1: :/ # /opt/freeware/bin/python3 --version
    Python 3.9.22

    root@favmdqm1: :/ # /opt/freeware/bin/python3 -m pip list
    Package         Version
    --------------- -------
    gpg             1.13.1
    pip             23.3.1
    python-dateutil 2.8.2
    setuptools      72.1.0
    six             1.13.0
    wheel           0.41.2

    root@favmdqm1: :/users/u410203/DNF # pythonMDMS -m pip install --user --no-build-isolation  ./cx_Oracle-8.3.0
    Processing ./cx_Oracle-8.3.0
      Preparing metadata (pyproject.toml) ... done
    Building wheels for collected packages: cx_Oracle
      Building wheel for cx_Oracle (pyproject.toml) ... error
      error: subprocess-exited-with-error
     
      Building wheel for cx_Oracle (pyproject.toml) did not run successfully.
      exit code: 1
     
      [9 lines of output]
      <string>:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      /opt/freeware/lib/python3.9/site-packages/setuptools/config/expand.py:130: SetuptoolsWarning: File '/users/u410203/DNF/cx_Oracle-8.3.0/README.md' cannot be found
        return '\n'.join(
      running bdist_wheel
      running build
      running build_ext
      building 'cx_Oracle' extension
      gcc -maix64 -fPIC -pthread -O2 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O2 -Wall -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -I/opt/freeware/include -I/usr/include -DAIX_GENUINE_CPLUSCPLUS -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -DCXO_BUILD_VERSION=8.3.0 -Iodpi/include -Iodpi/src -I/opt/freeware/include/python3.9 -c odpi/src/dpiConn.c -o build/temp.aix-7205-2520-64-cpython-39/odpi/src/dpiConn.o
      error: command 'gcc' failed: No such file or directory
      [end of output]
     
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for cx_Oracle
    Failed to build cx_Oracle
    ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects



    ------------------------------
    Uday Birje
    ------------------------------


  • 2.  RE: I have AIX 7.2 Operating system,help us to install gcc 13 package in our server with steps.I downloaded the rpm's for gcc13 and did install the rpm's but still it says gcc not found.

    Posted 2 hours ago
    Edited by Ayappan P 2 hours ago

    You need to install "gcc" rpm or "gcc-c++" rpm to get the gcc/g++ compiler. libgcc/libstdc++ rpm only provides the runtime gcc libraries.



    ------------------------------
    Ayappan P
    ------------------------------