methew / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

Ubuntu 12.04 server x86 / pyodbc-3.0.3 / #261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to install the pyodbc connector under python3.2.2 and I received the 
bellow error message:

# sudo unzip pyodbc-3.0.3.zip
# cd pyodbc-3.0.3
# sudo python3 setup.py install

running install
running build
running build_ext
building 'pyodbc' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g 
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security 
-Werror=format-security -fPIC -DPYODBC_VERSION=3.0.3 -I/usr/include/python3.2mu 
-c /var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.cpp -o 
build/temp.linux-i686-3.2/var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.o 
-Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]
In file included from /var/pub/arch/pyodbc-3.0.3/src/pyodbcmodule.cpp:12:0:
/var/pub/arch/pyodbc-3.0.3/src/pyodbc.h:41:20: fatal error: Python.h: No such 
file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

please help

Original issue reported on code.google.com by AntoineB...@gmail.com on 12 May 2012 at 10:36

GoogleCodeExporter commented 9 years ago
Have you tried apt-get the python-devel libraries?

Original comment by carl.ri...@gmail.com on 21 Jun 2012 at 5:22

GoogleCodeExporter commented 9 years ago
Carl is correct.  Closing.

Original comment by mkleehammer on 26 Jun 2012 at 1:25