在hostmonster主机上安装Python2.5

六月 24th, 2010

hostmonster 主机默认支持Python2.3,但是有些时候,我们还是因为某些原因需要使用更高版本的Python,本文根据自己的实践经验,为您详细描述在hostmonster主机上安装Python2.5.2的全过程。
配置hostmonster系统环境
修改~/.bash_profile文件,在文件后添加

PATH=$HOME/bin:$PATH
LD_LIBRARY_PATH=$HOME/lib/
export PATH
export LD_LIBRARY_PATH


下载并安装Python2.5.2

$ cd $HOME/soft
$ wget http://python.org/ftp/python/2.5.2/Python-2.5.2.tgz
$ tar -xvfz Python-2.5.2.tgz
$ cd Python-2.5.2
$ ./configure –prefix $HOME
$ make install

安装Setuptools

$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ ~/bin/python ez_setup.py

参考:

http://wiki.dreamhost.com/Python
来源:http://xuming.net/2008/06/hostmonster-python25.html

随机日志

Leave a Reply