Linux+python+djiango+mysql compiling and installing learning notes

Source: Internet
Author: User
Tags bz2

1 Environment Preparation

oel5.8 32-bit

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 installation (slightly)


3 Install Python, the system can be brought in regardless of the installation of 2.7.5 then make a soft link on it.

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 installation (System comes with), install the following package

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 Installing setuptools-0.6c11.tar.gz

Tar zxvf setuptools-0.6c11.tar.gz

CD SETUPTOOLS-0.6C11

Python setup.py Install

4.2 Installing 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


Five mounting 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 compiling and installing learning notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.