ansible代码下载地址:
http://releases.ansible.com/ansible/

# git clone git://github.com/ansible/ansible.git --recursive
# cd ./ansile
# source ./hacking/env-setup
# vi /etc/profile
# source /etc/profile

# easy_install pycrypto-2.6.1.tar.gz
# yum install gcc
        Q:    src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’
        A:    yum install python-devel
       
       
        Q:    src/hash_template.c:361: warning: implicit declaration of function ‘Py_FatalError’
            c/_cffi_backend.c:6728: error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)
            error: Setup script exited with error: command 'gcc' failed with exit status 1
        A:  yum install libffi-devel
            yum install openssl
            yum install openssl-devel
       
# python setup.py install
Using /usr/lib64/python2.6/site-packages
Finished processing dependencies for ansible==2.2.0
# ansible test -m ping
        Q:  DeprecationWarning
        ERROR! Unexpected Exception: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
        the full traceback was:
        A:    wget https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz --no-check-certificate
            mv pip-1.5.4.tar.gz /usr/local/src/
            cd /usr/local/src/
            tar -zxvf pip-1.5.4.tar.gz
            cd pip-1.5.4
            python setup.py install
            pip install pycrypto-on-pypi

Q:  /usr/lib/python2.6/site-packages/cryptography-1.4-py2.6-linux-x86_64.egg/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6  DeprecationWarning
        An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'EntryPoint' object has no attribute 'resolve'
        A:    下载安装python2.7
            http://www.Python.org/ftp/python/
            mkdir /usr/local/python27
            tar xvf Python-2.7.tar.bz2
            cd Python-2.7
            ls
            ./configure --prefix=/usr/local/python27/
           
            mv /usr/bin/python /usr/bin/python2.6-0720
            make
            make install
            make clean 
            make distclean
           
            ln -s /usr/local/python27/bin/python /usr/bin/python
            vi /usr/bin/yum
                #!/usr/bin/python2.6
               
        Q:     Traceback (most recent call last):
            File "/usr/bin/ansible", line 4, in <module>
            import pkg_resources
            ImportError: No module named pkg_resources
        A:   
            cd python2.7/
            cd site
            cd site-packages/
            python get_pip.py
            ansible local -m ping
            pip install pycrypto
            pip install jinja2
            pip install paramiko
            pip install httplib2
            pip install six
            cd /usr/local/
            cd ansible/
            rm -rf *
            cd /usr/local/src/
            git clone git://github.com/ansible/ansible.git --recursive
            cp -a ansible/ /usr/local/
            rm -rf /usr/local/ansible/
            cp -ar ansible/ /usr/local/
            cd /usr/local/ansible/
            source ./hacking/env-setup
            python setup.py install
            ansible local -m ping
            Q:    ERROR!Specified hosts and/or --limit does not match any hosts
            cd /etc/
            cd ansible
            vim hosts
            [local]
            192.168.196.128      
            ansible local -m ping
            vi /etc/ansible/ansible.cfg
                参阅生产配置       
        Q:
            /usr/local/python27b/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability._warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
        A:    tar -xvf gmp-5.0.4.tar.bz2
            cd gmp-5.0.4
            ls
            ./configure
            make
            make check
            make install       
            pip install --ignore-installed PyCrypto

[root@vhost02 src]# ansible local -m ping
192.168.196.128 | SUCCESS => {
"changed": false,
"ping": "pong"
}
[root@vhost02 src]#

ansible 2.2的源码编译安装的更多相关文章

  1. SSH/SSL 源码编译安装简易操作说明

    环境:CentOS 6.7 安全加固需求,由于某盟扫描系统主机有SSL系列漏洞,客户要求必须修复: 解决方案:将SSH/SSL升级到最新版本,删除SSL旧版本(实测不删除旧版本某盟扫描无法通过). 当 ...

  2. 源码编译安装 MySQL 5.5.x 实践

    1.安装cmakeMySQL从5.5版本开始,通过./configure进行编译配置方式已经被取消,取而代之的是cmake工具.因此,我们首先要在系统中源码编译安装cmake工具. # wget ht ...

  3. 烂泥:mysql5.5数据库cmake源码编译安装

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 以前也写过一篇有关mysql5.0源码编译的文章,该文章为<烂泥:mysql5.0数据库源码编译安装>.但是MySQL自5.5版本以后,就开 ...

  4. Centos7.X 源码编译安装subversion svn1.8.x

    说明:SVN(subversion)的运行方式有两种:一种是基于Apache的http.https网页访问形式:还有一种是基于svnserve的独立服务器模式.SVN的数据存储方式也有两种:一种是在B ...

  5. centos6.5环境源码编译安装mysql5.6.34

    centos6.5环境源码编译安装mysql5.6.34 源码下载地址http://dev.mysql.com/downloads/mysql/5.6.html#downloads 选择Generic ...

  6. centos 6.5源码编译安装subversion 1.8.10

    一.简介 CentOS 6.5的yum源可以安装的SVN客户端版本太低了,1.6.11,所以需要升级到1.8.10,而官网有没有找到1.8.10的安装包,只能选择源码编译安装. 二.安装步骤 参考官网 ...

  7. Linux环境PostgreSQL源码编译安装

    Linux环境PostgreSQL源码编译安装 Linux版本: Red Hat 6.4 PostgreSQL版本: postgresql-9.3.2.tar.gz 数据存放目录: /var/post ...

  8. 总结源码编译安装mysql

    最近在学习源码编译安装LAMP.LNMP时,一直遇到一个难题,就是就是mysql无论怎么源码编译安装,到最后启动服务都提示"Starting MySQL.The server quit wi ...

  9. Linux下源码编译安装rpy2

    R(又称R语言)是一款开源的跨平台的数值统计和数值图形化展现工具.rpy2是Python直接调用R的第三方库,它可以实现使用python读取R的对象.调用R的方法以及Python与R数据结构转换等.这 ...

随机推荐

  1. FPGA基本原理之一

    FPGA就好像一个平台,用简单的器件和复杂的逻辑构建起来的.这个平台大概由六部分组成,分别为基本可编程逻辑模块(CLB).可编程输入/输出模块(IOB).嵌入式块RAM.丰富的布线资源.底层嵌入功能单 ...

  2. 重置SQL Server连接池

    EXEC sp_configure 'show advanced options', 1 GO -- To update the currently configured value for adva ...

  3. Maven实战(六)依赖

    我们项目中用到的jar包可以通过依赖的方式引入,构建项目的时候从Maven仓库下载即可. 1. 依赖配置    依赖可以声明如下: <project> ... <dependenci ...

  4. 更改form字段内容颜色

    1.fnd_global.Newline ---换行2.设置栏位值颜色:POST-QUERY SET_ITEM_INSTANCE_PROPERTY('FIND_RESULT.STATUS',CURRE ...

  5. 【转载】shell编程——if语句 if -z -n -f -eq -ne -lt

    shell编程中条件表达式的使用 if  条件then Commandelse Commandfi                              别忘了这个结尾 If语句忘了结尾fites ...

  6. 第一零五天上课 PHP TP框架下分页

    控制器代码(TestController.class.php) <?php namespace Home\Controller; use Home\Controller\EmptyControl ...

  7. Windows service无法删除怎么办?

      自己用c#创建的windows service, 安装后,执行installutil /u 状态变成disable,却删除不了.删除的时候提示"The specified service ...

  8. delphi检查url是否有效的方法

    function CheckUrl(url: string; TimeOut: integer = 5000): boolean;var hSession, hfile, hRequest: hInt ...

  9. ecshop 商品页面添加商品标签:

    /* @脚垫客户 需要给商品加属性.最简单粗暴的办法.后台调用加入.界面没有美化. */ goods.dwt <ul class="quantity"> <h2& ...

  10. avalon2学习教程15指令总结

    avalon的指令在上一节已经全部介绍完毕,当然有的语焉不详,如ms-js.本节主要总结我对这方面的思考与探索. MVVM的成功很大一语分是来自于其指令,或叫绑定.让操作视图的功能交由形形式式的指令来 ...