安装Zlib,Zlib在Python里有源码,可以先对它的进行编译。参考
http://www.cnblogs.com/lexus/archive/2012/02/23/2365660.html
升级python
http://diansummer.iteye.com/blog/716364
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar xvf Python-2.7.2.tar.bz2
./configure --prefix=/usr/local/python27 --with-zlib
make & make install
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/
安装Django
https://www.djangoproject.com/download/
配置一下django-admin.py路径
sudo ln -s /path/to/django/bin/django-admin.py /usr/local/bin/django-admin.py
yum安装Mysql
yum -y install mysql-server
yum install mysql-devel
具体的配置如下:
http://www.hackbase.com/tech/2011-09-09/65234.html
安装setuptools.
export PATH=$PATH:path-to-python/python2.7/bin
$ sh setuptools-0.6.c11-py2.7.egg