Ubuntu10.04 install stacklesspython to run a high-performance server

Source: Internet
Author: User
The following "#" starts with Ubuntu terminal command 1. First install Ubuntu10.042. Modify the root user password 3. Use root to log on to system 4. Python 2.6.55 is installed in Ubuntu by default. Download stackless view web http://zope.stackless.com/download/sdocument_view#cd/usr/src#wgethttp://www.

The following "#" starts with the Ubuntu terminal command

1. First install Ubuntu 10.04

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

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.