首页 > 代码库 > linux+python+djiango+mysql编译安装学习笔记

linux+python+djiango+mysql编译安装学习笔记

1 环境准备

oel5.8 32位

Database version : 5.0.77

MySQL-python-1.2.3.tar.gz

Python-2.7.5.tar.bz2

setuptools-0.6c11.tar.gz

Django-1.5.12.tar.gz


2 oel5.8安装(略)


3 安装python,系统自带可以不管,安装好2.7.5后做一个软链接就可以了

tar jxvf Python-2.7.5.tar.bz2

cd Python-2.7.5

./configure --prefix=/usr/local

ln /usr/local/bin/python2.7 /usr/bin/python


4 mysql安装 (系统自带),安装了如下包

libdbi-dbd-mysql-0.8.1a-1.2.2

mysql-server-5.0.77-4.el5_6.6

mysql-connector-odbc-3.51.26r1127-2.el5

mysql-devel-5.0.77-4.el5_6.6

mysql-5.0.77-4.el5_6.6

4.1 安装setuptools-0.6c11.tar.gz

tar zxvf setuptools-0.6c11.tar.gz

cd setuptools-0.6c11

python setup.py install

4.2 安装MySQL-python-1.2.3.tar.gz

tar zxvf MySQL-python-1.2.3.tar.gz

cd MySQL-python-1.2.3

python setup.py install


五 安装Django-1.5.12.tar.gz

tar zxvf Django-1.5.12.tar.gz

cd Django-1.5.12

python setup.py install

linux+python+djiango+mysql编译安装学习笔记