DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Install Fabric 1.8.3 on a Internet-blocked CentOS 6.4


This host can't access internet directly, but I built a tinyproxy server on 10.21.3.31:8888. So on this host I setup a HTTPS proxy:

# export https_proxy=http://10.21.3.31:8888
# export http_proxy=http://10.21.3.31:8888

Then pip can use this proxy to install fabric.

The following installation process is based on How to install Python 2.7 and Python 3.3 on CentOS 6

  1. yum groupinstall development

  2. yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

  3. Download Python 2.7.6 source code tarball from http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz

  4. tar xf Python-2.7.6.tar.xz

  5. cd Python-2.7.6

  6. ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"

  7. make && make altinstall

  8. Verify: which python2.7

  9. Download setuptools-3.4.3.zip from https://pypi.python.org/pypi/setuptools

  10. unzip setuptools-3.4.3.zip

  11. cd setuptools-3.4.3

  12. python2.7 setup.py install

  13. Download pip-1.5.4.tar.gz from https://pypi.python.org/pypi/pip

  14. tar zxvf pip-1.5.4.tar.gz

  15. cd pip-1.5.4

  16. python2.7 setup.py install

  17. Verify: which pip2.7;

  18. pip2.7 install fabric

If it doesn't work, download Fabric-1.8.3.tar.gz, paramiko-1.12.3.tar.gz and pycrypto-2.6.1.tar.gz on PYPI, the install them locally:

# pip2.7 install pycrypto-2.6.1.tar.gz
# pip2.7 install paramiko-1.12.3.tar.gz
# pip2.7 install Fabric-1.8.3.tar.gz
  1. Verify: fab --version;

Bingo!



Published

Apr 10, 2014

Last Updated

Apr 10, 2014

Category

Tech

Tags

  • centos 25
  • compile 6
  • fabric 8
  • python 136

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor