您的位置:首页 > 其它

fabric

2013-10-30 15:42 363 查看

Install python-2.7 and fabric on CentOS-5.6

Submitted by sandip on Fri, 08/05/2011 - 11:57centos

fabric

python

Install the required packages first:
# yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64

Download and install python-2.7 from source:
$ wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz $ tar -xvzf Python-2.7.2.tgz
$ cd Python-2.7.2
$ ./configure --with-threads --enable-shared
$ make
# make install

Link the shared library:
# echo "/usr/local/lib" >>/etc/ld.so.conf.d/local-lib.conf
# ldconfig

Verify with:
$ which python
$ python -V

Install easy_install:
$ wget http://peak.telecommunity.com/dist/ez_setup.py # python ez_setup.py

Install fabric via easy_install:
easy_install fabric

To get the location of site-packages for current version of python:
$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fabric