Not using bundled FreeTDS (error: command 'gcc' failed with exit status 1)

# Wget https://pypi.python.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz

# Phython setup.py build

报错如图:

image

系统版本:

# rpm -q centos-release

centos-release-7-2.1511.el7.centos.2.10.x86_64
安装EPEL源

# yum -y install epel-release
# yum -y install gcc python-pip python-devel freetds-devel
再安装你的physql:

image

 

成功!

参考:http://stackoverflow.com/questions/30109770/python2-7-pip-install-pymssql-fails-on-centos-6-3

posted @ 2016-09-18 15:52  Hello·Word  阅读(406)  评论(0编辑  收藏  举报