Forum Stats

  • 3,770,000 Users
  • 2,253,045 Discussions
  • 7,875,263 Comments

Discussions

How to install cx_Oracle on Solaris Sparc 11

User_WCIXK
User_WCIXK Member Posts: 3 Red Ribbon
edited Nov 17, 2016 4:20PM in Python

Hi All,

Most of the cx_Oracle 5.2.1 version builds are for Windows and Linux. How do I install/get an install for a Solaris 11 Sparc?

I tried to install using the following: cx_Oracle-5.2.1.tar.gz from sourceforge.net

But resulted in the following error:

/tmp/cx_Oracle-5.2.1$ python setup.py build

running build

running build_ext

building 'cx_Oracle' extension

creating build

creating build/temp.solaris-2.11-sun4v.32bit-2.7-11g

cc -DNDEBUG -KPIC -DPIC -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/demo -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/public -I/usr/incl          ude/python2.7 -c cx_Oracle.c -o build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.2.1

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

error: command 'cc' failed with exit status 1

Please advise.

Thanks,

Roshni.

jmcp-Oracle

Answers

  • Gaz in Oz
    Gaz in Oz Member Posts: 3,785 Bronze Crown
    edited Oct 11, 2016 2:41AM

    Hi 1882868-Roshni,

    unable to execute 'cc': No such file or directoryerror: command 'cc' failed with exit status 1

    The build process is looking for the c compiler and not finding it. Make sure you have cc (gcc) installed on the sparc machine. If it is installed, make sure it is in the $PATH of the user you are running the setup-py program.

    Cheers,

    Gaz.

  • User_WCIXK
    User_WCIXK Member Posts: 3 Red Ribbon
    edited Nov 17, 2016 3:44PM

    I am still getting the same error after installation of gcc...

    [/tmp/cx_Oracle-5.2.1]$ which gcc

    /bin/gcc

    [/tmp/cx_Oracle-5.2.1]$ echo $PATH

    /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0.4/dbhome_1/bin

    [/tmp/cx_Oracle-5.2.1]$ export PATH=$PATH:/bin

    [/tmp/cx_Oracle-5.2.1]$ echo $PATH

    /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0.4/dbhome_1/bin:/bin

    [/tmp/cx_Oracle-5.2.1]$ pip install cx_Oracle

    You are using pip version 6.0.8, however version 9.0.1 is available.

    You should consider upgrading via the 'pip install --upgrade pip' command.

    Collecting cx-Oracle

      Using cached cx_Oracle-5.2.1.tar.gz

    Installing collected packages: cx-Oracle

      Running setup.py install for cx-Oracle

        building 'cx_Oracle' extension

        cc -DNDEBUG -KPIC -DPIC -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/demo -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/public -I/usr/include/python2.7 -c cx_Oracle.c -o build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.2.1

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

        error: command 'cc' failed with exit status 1

        Complete output from command /usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-b_ZJtZ/cx-Oracle/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('', '\n'), __file__, 'exec'))" install --record /tmp/pip-KCn32x-record/install-record.txt --single-version-externally-managed --compile:

        running install

        running build

        running build_ext

        building 'cx_Oracle' extension

        creating build

        creating build/temp.solaris-2.11-sun4v.32bit-2.7-11g

        cc -DNDEBUG -KPIC -DPIC -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/demo -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/public -I/usr/include/python2.7 -c cx_Oracle.c -o build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.2.1

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

        error: command 'cc' failed with exit status 1

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

        Command "/usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-b_ZJtZ/cx-Oracle/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('', '\n'), __file__, 'exec'))" install --record /tmp/pip-KCn32x-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b_ZJtZ/cx-Oracle

This discussion has been closed.