The unixODBC Driver Manager

unixODBC is another popular ODBC driver manager available for Unix.

Again, first build unixODBC according to the documentation or install it via RPM, DEB or other package manager.

Now build freetds using the --with-unixodbc flag to specify the location where FreeTDS can find the include files from unixODBC. For instance if unixODBC's header files are in /opt/unixodbc/include use /opt/unixodbc. By default the location will be /usr/local.

$ ./configure --prefix=/usr/local/freetds --with-unixodbc=/usr/local
$ gmake
$ su root
Password: 
$ gmake install

In this example the FreeTDS ODBC libraries will be installed in /usr/local/freetds/lib. Now we need to tell the driver manager where to find them. Do this by editing $HOME/.odbc.ini or the /etc/odbc.ini file. The sample odbc.ini file that comes with FreeTDS in the samples directory will work for either supported driver manager. See the iODBC section for details.