Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux the process of installing pymssql

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "linux installation pymssql process", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux installation pymssql process" bar!

First, you need to find the appropriate package.

Freetds (http://www.filewatcher.com/m/freetds-0.82.tar.gz.1596755-0.html)

Setuptools (https://pypi.python.org/pypi/setuptools)

Pymssql (https://pypi.python.org/pypi/pymssql/)

Installation steps:

1. Install freetds

# tar zxvf freetds-0.82.tar.gz

# cd freetds-0.82

#. / configure-prefix=/usr/local/freetds-with-tdsver=8.0-enable-msdblib-enable-dbmfix-with-gnu-ld-enable-shared-enable-static

# make & & make install

# echo "/ usr/local/freetds/lib" > > / etc/ld.so.conf.d/freetds.conf

# ldconfig-v

Do as the document says, always make mistakes.

Error: command 'gcc' failed with exit status 1

There is no way, I can only follow my way to do it, and finally succeed, the details are as follows:

Check whether the python-devel package is installed, if not, please install

# yum install-y python-devel

# tar zxvf freetds-0.82.tar.gz

# cd freetds-0.82

#. / configure No parameters are added here

# make

# make install

# ldconfig-v

In addition, you need to check whether the following packages exist

Libxml2 libxml2-dev libxslt* zlib gcc openssl

two。 Install setuptools

# tar zxvf setuptools-3.5.1.tar.gz

# cd setuptools-3.5.1

# python setup.py install

3. Install pymssql

# tar zxvf pymssql-2.1.0.tar.gz

# cd pymssql-2.1.0

# python setup.py install

Thank you for reading, the above is the content of "the process of installing pymssql in linux". After the study of this article, I believe you have a deeper understanding of the process of installing pymssql in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report