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:
- ./Configure-Prefix =/usr(Or./Configure-- Program-Prefix =/usr)
- Make
- 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