Ubuntu10.04 install stackless python to run a high-performance server

Source: Internet
Author: User

The following "#" starts with the Ubuntu terminal command

1. First install ubuntu10.04

Reference http://wiki.ubuntu.org.cn/

2. Modify the root user password

3. Use root to log on to the system

 

4. Python 2.6.5 is installed in Ubuntu by default.

 

5. Download stackless

View web site http://zope.stackless.com/download/sdocument_view

# Cd/usr/src

# Wget http://www.stackless.com/binaries/stackless-265-export.tar.bz2

# Tar jxvf stackless-265-export.tar.bz2

 

6. Install the development libraries on which some modules depend

6.1 to install the zlib development library, you cannot run easy_install without the zip component.
# Apt-Get install zlib1g-dev
6.2 To install the Readline Development Kit, Python needs it
# Apt-Get install libreadline5-dev
6.3 OpenSSL, bdb, and Bzip2 Development Kits
# Apt-Get install libssl-Dev
# Apt-Get install libdb-Dev
# Apt-Get install libbz2-dev

6.4 install the compilation tool

# Apt-Get install build-essential

 

7. Compile the python-2.6.5-stackless and install it to the/OPT directory

# Cd/usr/src/python-2.6.5-stackless/

#./Configure -- prefix =/opt/stackless -- With-Readline -- With-zlib =/usr/include
# Make

# Make install

 

8. Modify the system path. Now you can add the stackless path before your path variable to make stackless the default Python
# Export Path =/opt/stackless/bin: "$ path"
This statement can be added to. profile or. bash_profile. stackless can be used by default every time Bash is entered.

9. Install easy_install now. It will be convenient to install Python package later.
# Cd/usr/src
# Wget http://peak.telecommunity.com/dist/ez_setup.py
# Python ez_setup.py

 

10. Test the high-performance network development framework

Reference Web site http://opensource.hyves.org/concurrence/

Detailed installation instructions http://opensource.hyves.org/concurrence/install.html#install

 

 

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.