Today to deploy a Python script on an online server, which used the MYSQLDB, a variety of attempts to download the source code (a variety of dependencies are incompatible with the library), Get/yum (this linux is really pure ah these two can not be used) installation, wget download RPM package is not connected to the network, have failed, and Libmysqlclient-dev and Mysql-python are not very easy to find, each has a lot of versions, but also a variety of incompatible with each other version .
Finally found the available version is
ftp://rpmfind.net/linux/centos/6.6/os/x86_64/Packages/MySQL-python-1.2.3-0.3.c1.1.el6.x86_64.rpm
And
http://archive.debian.net/zh-cn/etch/amd64/libmysqlclient15-dev/download
Wget the two packages onto a single server, alien the Deb format into RPM format, rsync-avzp the two RPM packets to the online server, and then rpm-ivh them sequentially, OK
Reference: Inux conversion to RPM format in deb format
Original: http://blog.163.com/[email protected]/blog/static/884868712013224033518/
Convert the Deb format to the RPM format using the Alien tool
Alien_8.87.tar.gz
Download alien_8.87.tar.gz
[Email protected] ~]# wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.87.tar.gz
[Email protected] ~]# tar zxvf alien_8.87.tar.gz
[Email protected] ~]# CD Alien
[Email protected] alien]# Perl makefile.pl
[[email protected] alien]# make
[[email protected] alien]# make install
Convert Libnet0-dev_1.0.2a-7_i386.deb to libnet0-dev-1.0.2a-8.i386.rpm
[Email protected] ~]# alien-r libnet0-dev_1.0.2a-7_i386.deb
warning:skipping Conversion of scripts in package Libnet0-dev:postinst Prerm
Warning:use the--scripts parameter to include the scripts.
LIBNET0-DEV-1.0.2A-8.I386.RPM generated
Installing RPM Packages
[Email protected] ~]# RPM-IVH libnet0-dev-1.0.2a-8.i386.rpm
Conversion of Deb format to RPM format in Linux environment