Mo.
Mo.

Reputation: 42493

freeTDS: Missing libtdsodbc.so file on OSX?

I am trying to connect to a SQL server from a python script on a Mac OSX and after installing freeTDS using brew install freeTDS I can't seem to find the driver "libtdsodbc.so" anywhere on my machine so that I can place it in the connection string.

Has anyone ever encountered this problem or knows why it's happening?

Thanks

Upvotes: 11

Views: 5938

Answers (2)

louielyl
louielyl

Reputation: 1042

Hope I am not too late for the party.

If you installed FreeTDS with homebrew, you can find the libtdsodbc.so at /opt/homebrew/lib/libtdsodbc.so

Happy hacking!

Upvotes: 0

Mo.
Mo.

Reputation: 42493

So according to This thread here the issue is with the way freeTDS is built now, you need to use brew install freetds --with-unixodbc and I can verify this fixed my problem.

Upvotes: 18

Related Questions