Installing FreeTDS

Before you begin your installation, verify that unixODBC is not already installed on your machine. If it is, uninstall the existing version of unixODBC.

StepsInstalling and configuring FreeTDS

  1. Download FreeTDS from the FreeTDS Web page, and unzip the source code. Sybase recommends that you use the latest version of FreeTDS, which is fully compatible with ODBC 3.0.

  2. Change to the FreeTDS source code directory; for example, /usr/tmp, and run:

    ./configure --prefix=$DJC_HOME/freetds \
    --with-tdsver=5.0\
    --with-unixodbc=$DJC_HOME/odbc
    
  3. Compile the source code:

    make
    make install
    

    The compilation process adds the library libtdsodbc.so to $DJC_HOME/freetds/lib.