安装步骤:
1. 安装freetds
#tar zxvf freetds-0.91RC2.tar.gz
#cd freetds-0.91RC2
#./configure
--prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --with-gnu-ld --enable-shared --enable-static
#make && make install
#echo "/usr/local/freetds/lib" >> /etc/ld.so.conf.d/freetds.conf
#ldconfig -v
2. 安装setuptools
#tar zxvf setuptools-36.2.7.tar.gz
#cd setuptools-36.2.7
# python setup.py install
3. 安装pymssql
#tar zxvf pymssql-2.1.0.tar.gz
#cd pymssql-2.1.0
#python setup.py install
注:如果不安装freetds,会报如下错误:
error: command ‘gcc‘ failed with exit status 1
时间: 2024-10-20 15:05:55