[egenix-users] compile errors

M.-A. Lemburg mal at egenix.com
Fri Apr 7 19:14:41 CEST 2006


Kelly, Brian wrote:
> I've installed the base package and I've already installed libiodbc but
> when I run python setup.py install I get hundreds of errors. I'm using
> python 2.4.2 and GCC 3.3.5. I have been able to get it to compile
> successfully on OSX using python 2.3.5 GCC 3.3.
> 
> Here's a snippet of my output:
> 
> running install
> running build
> running mx_autoconf
> i386-pc-linux-gnu-gcc -pthread -DNDEBUG -fno-strict-aliasing -fPIC
> -D_GNU_SOURCE=1 -I/usr/include -c _configtest.c -o _configtest.o
> i386-pc-linux-gnu-gcc -pthread _configtest.o -L/usr/local/lib -L/usr/lib
> -o _configtest
> success!
> removing: _configtest.c _configtest.o _configtest
> i386-pc-linux-gnu-gcc -pthread -DNDEBUG -fno-strict-aliasing -fPIC
> -D_GNU_SOURCE=1 -I/usr/include/python2.4 -I/usr/include -c _configtest.c
> -o _configtest.o
> success!
> removing: _configtest.c _configtest.o
> running build_ext
> building 'mx.ODBC.iODBC.mxODBC' extension
> i386-pc-linux-gnu-gcc -pthread -DNDEBUG -fno-strict-aliasing -fPIC
> -DiODBC -DHAVE_STRPTIME=1 -Imx/ODBC/iODBC -I/usr/local/iODBC/include
> -I/usr/include/python2.4 -I/usr/include -c mx/ODBC/iODBC/mxODBC.c -o
> build/temp.linux-i686-2.4/mx/ODBC/iODBC/mxODBC/mx/ODBC/iODBC/mxODBC.o
> 
> In file included from mx/ODBC/iODBC/mxODBC.c:33:
> mx/ODBC/iODBC/mxODBC.h:239:19: sql.h: No such file or directory
> mx/ODBC/iODBC/mxODBC.h:240:22: sqlext.h: No such file or directory

The compiler can't find or read the iODBC header files.
Please make sure these are in /usr/include (where they
should be per default on Mac OS X) and readable.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Apr 07 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::



More information about the egenix-users mailing list