Skip to content

Instantly share code, notes, and snippets.

@metaskills
Last active November 4, 2022 09:44
Show Gist options
  • Save metaskills/f06eb9410e804d2555abc614b3fa89a9 to your computer and use it in GitHub Desktop.
Save metaskills/f06eb9410e804d2555abc614b3fa89a9 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 Install Latest FreeTDS
$ sudo apt-get install wget
$ sudo apt-get install build-essential
$ sudo apt-get install libc6-dev
$ wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz
$ tar -xzf freetds-1.00.27.tar.gz
$ cd freetds-1.00.27
$ ./configure --prefix=/usr/local --with-tdsver=7.3
$ make
$ make install
@mike-seekwell
Copy link

mike-seekwell commented Mar 16, 2018

Does anyone know how to make this the "default" version of FreeTDS? When I run tsql -C, it's still showing the older version (v0.91)

@Shanil-shah
Copy link

You need to remove it using sudo apt-get autoremove freetds-dev freetds-bin

@chan80
Copy link

chan80 commented Apr 30, 2019

After sudo apt-get autoremove freetds-dev freetds-bin, I am not able to run tsql -C anymore and it was removed.
Any idea how I can re-install back tsql again?

@wirelessben
Copy link

After sudo apt-get autoremove freetds-dev freetds-bin, I am not able to run tsql -C anymore and it was removed.
Any idea how I can re-install back tsql again?

Just reinstall freetds-bin. tsql is one of the command line utilities.

@rotimi-best
Copy link

can anyone help with this error after running line 9?

image

ret = SSL_connect(con) != 1 || con->state != SSL_ST_OK;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment