LoginSignup
13
11

More than 5 years have passed since last update.

pip で Ansible がインストール出来ない。

Last updated at Posted at 2016-05-03

状況

5月に入ってから、pip経由で Ansibleの最新を新規に
インストールしようとしたら、インストールできなくなっていた。

以下のようなエラーが出た。

fatal error: ffi.h: No such file or directory

上記解決後に以下のエラーも発生

fatal error: openssl/e_os2.h: No such file or directory

環境

  • 環境は、CentOS7 Minimum(にちかい環境)
  • pip 経由でのAnsibleインストール pip install ansible
  • 確認したAnsibleのバージョンは、2.0.2.0
$ ansible --version
ansible 2.0.2.0

解決

以下のdevel パッケージをインストールすることで解決出来た。

yum install libffi-devel openssl-devel

その他に、Ansibleをインストールする際には、yumで 以下のようなrpm を事前にインストールしておく
必要がある。

yum -y install python-devel python-crypto libffi-devel openssl-devel

う〜ん。Ansibleが、肥えていくー。

13
11
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
13
11