LoginSignup
16
16

More than 5 years have passed since last update.

fabricインストール(CentOS6.5)

Last updated at Posted at 2014-08-25

CentOS6.5でハマったので、メモ

1.前提条件
・CentOS6.5 64bit minimal baseパッケージインストール済
・インターネット接続されている事
・SELinux無効、iptables停止

2.手順
以下のコマンドを全てrootで実行


# yum groupinstall "Development Tools" “Base”
# yum install zlib-devel tk-devel tcl-devel sqlite-devel ncurses-devel gdbm-devel readline-devel bzip2-devel db4-devel openssl-devel python-setuptools python-devel
# easy_install pip
# pip install fabric

setuptoolsのバージョンが古いとか何とかエラーがでたら、下記を実行


# pip install setuptools --no-use-wheel --upgrade

pycryptoのバージョンによっては、実行時に以下のエラーが出る


AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

pycryptoのバージョンを変更すればよい


# pip uninstall pycrypto
# pip install PyCrypto==2.3

3.動作確認


# fab –V
Fabric 1.9.0
Paramiko 1.14.0

バージョンが表示されればOK
インストールされたバージョン確認


# pip freeze
Fabric==1.9.0
ecdsa==0.11
iniparse==0.3.1
paramiko==1.14.0
pycrypto==2.6.1
pycurl==7.19.0
pygpgme==0.1
urlgrabber==3.9.1
virtualenv==1.11.6
yum-metadata-parser==1.1.2

# pip show setuptools
Name: setuptools
Version: 5.4.1
Location: /usr/lib/python2.6/site-packages
Requires:
16
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
16