Ubuntu11.10 configure Python-Related Development Environment

Source: Internet
Author: User

The following installation is the development environment that I need to use. Install it as needed

 

Install MySQL
$ Sudo apt-Get install mysql-Server

Install Apache
$ Sudo apt-Get install apache2

Install PhP5
$ Sudo apt-Get install PhP5 // install PhP5

Other modules
$ Sudo apt-Get install libapache2-mod-php5 // configure Apache + PHP
$ Sudo apt-Get install libapache2-mod-auth-mysql // make Apache support MySQL
$ Sudo apt-Get install php5-mysql // MySQL connection
$ Sudo apt-Get install php5-gd // GD library

PhpMyAdmin
$ Sudo apt-Get install phpMyAdmin

(You can directly download and decompress phpmyadmin.net and then $ MV PHPmyAdmin/var/www/(move to the root path of the Apache website ))

Mysqldb

$ Sudo apt-Get install Python-mysqldb

Install setuptools

$ Sudo apt-Get install Python-setuptools

Install Python-Dev

$ Sudo apt-Get install Python-Dev

Install libevent-Dev

$ Sudo apt-Get install libevent-Dev

 

 

Install libevent (ubuntu11.10 comes with a libevent-2.0.so.5.1.1, do not need to install, the following summary does not come with the installation of the steps required)

1. First Use: ls-Al/usr/lib | grep libeventCheck whether the version has been installed. if the version is earlier than 1.3, run: rpm-e libevent-nodeps to uninstall it.

2. Download The libevent installation package: libevent-1.4.13-stable.tar.gz and unzip it.

3. Switch to the decompressed libevent Home Directory: CD libevent-1.4.13-stable

4. Execute the following commands in sequence:

  1. ./Configure-Prefix =/usr(Or./Configure-- Program-Prefix =/usr) 
  2. Make 
  3. MakeInstall 

 Note:
1) The root permission may be required for executing make install.

 

2) The libevent will be installed under/usr/lib or/usr/local/lib.

 

 

5. test whether the libevent is successfully installed: ls-Al/usr/lib | grep libevent (or LS-Al/usr/local/lib | grep libevent)

 

6. if the libevent installation directory is/usr/local/lib, you also need to establish a soft connection to the/usr/lib libevent-1.4.so.2 so that other programs can find the libevent Library: ln-S/usr/local/lib/libevent-1.4.so.2/Usr/lib/libevent-1.4.so.2

 

 

Install greenlet

$ Easy_install greenlet

Install gevent

$ Easy_install gevent

 

 

Related Article

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.