Compile freedts 1.00 on EL6
Just a note to myself, maybe you will find this usefull as well.
In order to compile freedts-1.00 you need to have the GCC, unixODBC and unixODBC-devel packages installed.
Next download and un-tar the freedts package.
for some reason the ‘ODBC_INC’ variable isnt set properly in the configure script. This will lead to an ‘sql.h not found’ message when the –with-unixodbc switch is used. the fix for this is:
Locate the sql.h file on your system:
find / -iname sql.h -print
edit the freetds ./configure script and add the variable. Given example is specific for my system. Make sure you alter it accordingly.
Next configure the compiler
./configure –with-tdsver=7.0 –with-unixodbc=/usr/local –includedir=/usr/include
Make the install using in sequence: