nasihere / pyodbc

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

Unable to setup pyodbc on Centos 6.5 #364

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Download the source zip files for Centos and Unzip
2.In the source directory 
3.[r**i@localhost pyodbc-3.0.7]$ sudo python setup.py build

What is the expected output? What do you see instead?
Need to see the o/p as build before I can install instead I keep compile errors 

What version of the product are you using? On what operating system?
pyodbc-3.0.7 and Centos 6.5 64bit

Please provide any additional information below.
I have already install yum unixODBC and unixODBC-devel and gcc-c++

[razi@localhost pyodbc-3.0.7]$ sudo python setup.py build
running build
running build_ext
building 'pyodbc' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 
-D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=3.0.7 
-I/usr/include/python2.6 -c /home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.cpp 
-o build/temp.linux-x86_64-2.6/home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.o 
-Wno-write-strings
In file included from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.cpp:2:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:41:20: error: Python.h: No such 
file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:42:25: error: floatobject.h: No 
such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:43:24: error: longobject.h: No 
such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:44:24: error: boolobject.h: No 
such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:45:27: error: unicodeobject.h: 
No such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:46:26: error: structmember.h: No 
such file or directory
In file included from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:137,
                 from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.cpp:2:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:61:28: error: 
stringobject.h: No such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:62:25: error: intobject.h: 
No such file or directory
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:63:28: error: 
bufferobject.h: No such file or directory
In file included from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.cpp:2:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h: In function ‘void 
_strlwr(char*)’:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:92: error: ‘tolower’ was not 
declared in this scope
In file included from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbc.h:137,
                 from /home/razi/Downloads/pyodbc-3.0.7/src/pyodbcdbg.cpp:2:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h: At global scope:
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:71: error: expected 
initializer before ‘*’ token
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:81: error: 
‘Text_Buffer’ declared as an ‘inline’ variable
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:81: error: ‘PyObject’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:81: error: ‘o’ was not 
declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:82: error: expected 
‘,’ or ‘;’ before ‘{’ token
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:93: error: 
‘Text_Check’ declared as an ‘inline’ variable
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:93: error: ‘PyObject’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:93: error: ‘o’ was not 
declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:94: error: expected 
‘,’ or ‘;’ before ‘{’ token
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:104: error: ‘PyObject’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:104: error: ‘lhs’ was 
not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:104: error: expected 
primary-expression before ‘const’
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:104: error: initializer 
expression list treated as compound expression
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:109: error: 
‘Text_Size’ declared as an ‘inline’ variable
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:109: error: ‘PyObject’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:109: error: ‘o’ was 
not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:110: error: expected 
‘,’ or ‘;’ before ‘{’ token
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: 
‘TextCopyToUnicode’ declared as an ‘inline’ variable
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: 
‘Py_UNICODE’ was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: ‘buffer’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: ‘PyObject’ 
was not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: ‘o’ was 
not declared in this scope
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:118: error: initializer 
expression list treated as compound expression
/home/razi/Downloads/pyodbc-3.0.7/src/pyodbccompat.h:119: error: expected 
‘,’ or ‘;’ before ‘{’ token
error: command 'gcc' failed with exit status 1

Original issue reported on code.google.com by mdr...@gmail.com on 21 Mar 2014 at 10:59