ts2009 发表于 2018-7-30 12:18:36

关于去掉ansible运行前的Warning-Lairuihong

  运行ansible前,会出现一下Warning。
  : The version of gmp you have installed has a known issue regarding
  timing vulnerabilities when used with pycrypto. If possible, you should update
  it (i.e. yum update gmp).
  解决方法:
  忽略下输出
  cp/usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py{,.bak}
  perl -p -i -e "s/^(if _fastmath is not None .*:)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py
  perl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py
  问题解决。
页: [1]
查看完整版本: 关于去掉ansible运行前的Warning-Lairuihong