title: cx_Oracle: distutils.errors.DistutilsSetupError: cannot locate Oracle include files
body: <p>I need install cx_Oracle for Python 2.5 on Linux (Linux 2.6.18-371.1.2.el5 i686). I have installed Oracle client 10.2.0.4.</p>
  
  <p>I have tried following:
  1. Download <code>cx_Oracle tar.gz</code> from <code>http://sourceforge.net/projects/cx-oracle/files/</code>. 
  I don't know which of listed version are suitable for python 2.5 and Oracle client 10.2.0.4, so try cx_Oracle-5.1.tar.gz. Unpacked tar, 
  go to unpacked folder and run python setup.py install. I got error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "setup.py", line 187, in &lt;module&gt;
  raise DistutilsSetupError("cannot locate Oracle include files")
  distutils.errors.DistutilsSetupError: cannot locate Oracle include files
  </code></pre>
  
  <p>In .bash_profile I have setted oracle path:</p>
  
  <pre><code>export ORACLE_HOME=/usr/oracle/10.2.0.4/client
  export PATH=$ORACLE_HOME/bin
  export LD_LIBRARY_PATH=$ORACLE_HOME/lib
  </code></pre>
  
  <p>How fix such error, maybe I need another version of cx_Oracle tar?</p>
  
  <ol>
  <li>Run  pip install cx_Oracle. Got error:</li>
  </ol>
  
  <p>Downloading/unpacking cx-Oracle</p>
  
  <pre><code>Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement cx-Oracle
  No distributions at all found for cx-Oracle
  </code></pre>
  
  <p>Could someone advise me right solution?</p>
  
  <p><strong>Update</strong>
  After suggestion in response I got following error:</p>
  
  <pre><code>...
  cx_Oracle.c:496: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from  pointer without a cast
  cx_Oracle.c:497: error: âOCI_UCBTYPE_EXITâ undeclared (first use in this function)
  cx_Oracle.c:497: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from pointer without a cast
  cx_Oracle.c:498: error: âOCI_UCBTYPE_REPLACEâ undeclared (first use in this function)
  cx_Oracle.c:498: warning: passing argument 3 of âPyModule_AddIntConstantâ makes integer from pointer without a cast
  error: command 'gcc' failed with exit status 1
  </code></pre>