目的是安装ansible,使用编译rpm包方式,编译好后,安装这个包
# rpm -Uvh rpm-build/ansible-2.2.0*noarch.rpm
error: Failed dependencies:
python-httplib2 is needed by ansible-2.2.0-0.git201606300036.6df56f0.devel.el7.centos.noarch
python-keyczar is needed by ansible-2.2.0-0.git201606300036.6df56f0.devel.el7.centos.noarch
sshpass is needed by ansible-2.2.0-0.git201606300036.6df56f0.devel.el7.centos.noarch
提示缺少三个包:
python-httplib2
python-keyczar
sshpass
可是httplib2和keyczar这两个包是用pip安装过的,import都成功。
import httplib2
import keyczar
已经解决。大家不必关心。
pip install ansible 可以了。不知为什么又可以了,对了一下时间,估计跟时间有关。