1 Reply Latest reply on Jul 17, 2019 10:17 PM by cj

    cx_Oracle installation on AIX machine

    Pankaj S

      Hi All,

      Need your help,

      I am trying to use Python(3.7.0) to connect to Oracle database 12c (12.2.0.1.0),

      and for that I am trying to install cx_Oracle installation on AIX machine but I am getting error while trying to do so.

       

      >>python -m pip install cx_Oracle

      Looking in indexes: https://abcd.com/artifactory/api/pypi/pypi/simple

      Collecting cx_Oracle

        Downloading https://abcd.com/artifactory/api/pypi/pypi/packages/21/21/54075c8d50ac3ae4bf27a0792a0253570329cb333bcf56139a6c3c4cdfaa/cx_Oracle-7.2.0.tar.gz (302kB)

           |################################| 307kB 21.1MB/s

      Installing collected packages: cx-Oracle

        Running setup.py install for cx-Oracle ... error

          ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-yw9g4p9r/cx-Oracle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-hu0sxhtz/install-record.txt --single-version-externally-managed --compile:

          ERROR: running install

          running build

          running build_ext

          building 'cx_Oracle' extension

          creating build

          creating build/temp.aix-7.2-3.7

          creating build/temp.aix-7.2-3.7/src

          creating build/temp.aix-7.2-3.7/odpi

          creating build/temp.aix-7.2-3.7/odpi/src

          xlc_r -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -q64 -DCXO_BUILD_VERSION=7.2.0 -Iodpi/include -Iodpi/src -I/opt/include/python3.7m -c src/cxoBuffer.c -o build/temp.aix-7.2-3.7/src/cxoBuffer.o

          unable to execute 'xlc_r': No such file or directory

          error: command 'xlc_r' failed with exit status 1

          ----------------------------------------

      ERROR: Command "/usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-yw9g4p9r/cx-Oracle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-hu0sxhtz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-yw9g4p9r/cx-Oracle/

       

      Any ideas please

       

      Thanks,

       

      Pankaj