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