Re: [cx-oracle-users] Missing Headers?
Brought to you by:
atuining
From: Hancock, D. (DHANCOCK) <DHA...@ar...> - 2013-06-11 18:30:14
|
I think the fix for this is to apt-get python-dev. Cheers! -- David Hancock | dha...@ar... From: Juan Gorondi <ju...@di...<mailto:ju...@di...>> Reply-To: "cx-...@li...<mailto:cx-...@li...>" <cx-...@li...<mailto:cx-...@li...>> Date: Tuesday, June 11, 2013 2:02 PM To: "cx-...@li...<mailto:cx-...@li...>" <cx-...@li...<mailto:cx-...@li...>> Subject: [cx-oracle-users] Missing Headers? I am attempting to install cx_Oracle-5.1.2 on Ubuntu 12.04 with python 2.7.3 I am getting the following build error: root@ubu1:/usr/local/src/cx_Oracle-5.1.2# python setup.py build running build running build_ext building 'cx_Oracle' extension creating build creating build/temp.linux-x86_64-2.7-11g gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/src/instantclient_11_2/sdk/i2 cx_Oracle.c:6:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 I searched the entire system for the missing header file to no avail. I also noticed that the include path /usr/local/src/instantclient_11_2/sdk/i2 does not exist. There is, however, an sdk/include directory with some header files included in cx_Oracle.c such as oci.h, orid.h, xa.h. But Python.h and structmember.h are missing. Any suggestions? Juan |