1、安装freetds

wget http://mirrors.ibiblio.org/freetds/stable/freetds-stable.tgz

tar xvzf freetds-stable.tgz 

cd freetds-0.91/

./configure --prefix=/usr/local/freetds --with-unixodbc=/usr/local/unixODBC --with-tdsver=8.0

make && make install

 

2、安装unixodbc

wget http://nchc.dl.sourceforge.net/project/unixodbc/unixODBC/2.3.4/unixODBC-2.3.4.tar.gz

tar xvzf unixODBC-2.3.4.tar.gz 

cd unixODBC-2.3.4

mkdir /usr/local/unixODBC

./configure --prefix=/usr/local/unixODBC

make && make install

 

 参考:

http://waringid.blog.51cto.com/65148/1268454

http://penghb.blog.51cto.com/206943/1559643

http://jingpin.jikexueyuan.com/article/44014.html

http://help.interfaceware.com/kb/904

posted on 2016-09-09 16:32  牛B大王  阅读(1019)  评论(0编辑  收藏  举报