freeTDS:OSX上缺少libtdsodbc.so文件吗? [英] freeTDS: Missing libtdsodbc.so file on OSX?

查看:190
本文介绍了freeTDS:OSX上缺少libtdsodbc.so文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Mac OSX上的python脚本连接到SQL Server,并且使用brew install freeTDS安装freeTDS之后,我似乎无法在计算机上的任何位置找到驱动程序"libtdsodbc.so",因此我可以将其放在连接字符串中.

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?

谢谢

推荐答案

因此,根据此处的线程问题在于freeTDS的构建方式,您需要使用brew install freetds --with-unixodbc,我可以验证此问题是否已解决.

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.

这篇关于freeTDS:OSX上缺少libtdsodbc.so文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆