时间:2021-07-01 10:21:17 帮助过:32人阅读
ubuntu安装MYSQLDB, pymssql记录
1. 安装MYSQLDB
9 wget http://jaist.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz
tar zxvf MySQL-python-1.2.4b4.tar.gz
cd MySQL-python-1.2.4b4/
sudo apt-get install libmysqlclient-devsudo apt-get install python-devpython setup.py buildpython setup.py install
2. 安装pymssql
28 apt-get install easy_install 29 ls 30 tar zxvf -f pymssql.tar.gz 31 tar -zxvf pymssql-2.0.0b1-dev-20130403.tar.gz 32 cd pymssql-2.0.0b1-dev-20130403/ 33 ls 34 apt-get install Cpython 35 apt-get install cpython 36 apt-get install freetds 37 cd .. 38 ls 39 tar zxvf freetds-stable.tgz 40 cd freetds-0.91/ 41 ls 42 ./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared --enable-static 43 make 44 apt-get install make 45 make 46 make install 47 ls 48 cd .. 49 ls 50 rm -rf Cython-0.19.1 51 tar zxvf Cython-0.19.1.tar.gz cd Cython-0.19.1/ 53 ls 54 python setup.py install 55 cd .. 56 ls 57 tar zxvf setuptools-1.1.6.tar.gz 58 cd setuptools-1.1.6/ 59 ls 60 python setup.py install 61 cd .. 62 ls 63 cd pymssql-2.0.0b1-dev-20130403/ 64 ls 65 python setup.py install 66 sudo apt-get install python-setuptools 67 cd .. 68 ls 69 easy_install pymssql-2.0.0b1_dev_20111018-py2.7-linux-x86_64.egg