ansible源码安装

 
1.可以先查看一下含python-devel的包
    yum search python | grep python-devel
2.64位安装python-devel.x86_64,32位安装python-devel.i686,我这里安装:
    sudo yum install python-devel.x86_64  gmp*
 
源码安装需要python2.6以上版本,其依赖模块paramiko、PyYAML、Jinja2、httplib2、simplejson、pycrypto模块,以上模块可以通过pip或easy_install 进行安装,不过本部分既然提到的是源码安装,主要针对的无法上外网的情况下,可以通过pypi 站点搜索以上包,下载后通过python setup.py install 进行安装。
最后通过github或pypi上下载ansible源码包,通过python setup.py install 安装即可。

ansible-2.3.0.0.tar.gz cryptography-1.8.1.tar.gz ipaddress-1.0.16.tar.gz paramiko-1.16.0.tar.gz pycrypto-on-pypi-2.3.tar.gz
ecdsa-0.13.tar.gz  paramiko-2.1.2.tar.gz pyparsing-2.2.0.tar.gz
asn1crypto-0.22.0.tar.gz enum34-1.1.6.tar.gz Jinja2-2.9.6.tar.gz pyasn1-0.2.3.tar.gz PyYAML-3.12.tar.gz
cffi-1.10.0.tar.gz httplib2-0.10.3.tar.gz MarkupSafe-1.0.tar.gz pycparser-2.14.tar.gz simplejson-3.10.0.tar.gz
 idna-2.5.tar.gz packaging-16.8.tar.gz pycrypto-2.6.1.tar.gz six-1.10.0.tar.gz

 
 安装顺序  pycrypto-2.6   ecdsa-0.13       paramiko-1.16.0      PyYAML-3.11  httplib2-0.9     simplejson-3.8.0  Jinja2-2.8   
 
 

cd asn1crypto-0.22.0;python setup.py install;cd ..
cd pycparser-2.14;python setup.py install;cd ..
cd cffi-1.10.0;python setup.py install;cd ..
cd six-1.10.0;python setup.py install;cd ..
cd cryptography-1.8.1;python setup.py install;cd ..
cd pyparsing-2.2.0;python setup.py install;cd ..
cd packaging-16.8;python setup.py install;cd ..
cd ecdsa-0.13;python setup.py install;cd ..
cd httplib2-0.10.3;python setup.py install;cd ..
cd idna-2.5;python setup.py install;cd ..
cd ipaddress-1.0.16;python setup.py install;cd ..
cd MarkupSafe-1.0;python setup.py install;cd ..
cd Jinja2-2.9.6;python setup.py install;cd ..
cd pyasn1-0.2.3;python setup.py install;cd ..
cd paramiko-2.1.2;python setup.py install;cd ..
cd pycrypto-2.6.1;python setup.py install;cd ..
cd PyYAML-3.12;python setup.py install;cd ..
cd simplejson-3.10.0;python setup.py install;cd ..

 
posted @ 2017-05-03 19:10  JonyQ  阅读(1585)  评论(0编辑  收藏  举报