Dreamhost 上编译python并安装django
2008年11月5日 | 分类: Linux&Webserver | 标签: django, dreamhost, python
1. 升级python到2.5.2:
用Putty登录到DreamHost的Shell控制台执行如下的命令:
view sourceprint?
01.mkdir opt
02.cd opt
03.mkdir packages
04.cd packages
05.wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
06.tar -xzvf Python-2.5.2.tgz
07.cd Python-2.5.2
08../configure -prefix=$HOME/opt
09.make
10.make install
python 2.5已经安装好了。把python 2.5设置为默认版本:
view sourceprint?
1.border-style: initial; border-color: initial; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; outline-width: 0px; outline-style: initial; outl
页:
[1]