Searching for M2Crypto==0.22.3 Reading https://pypi.python.org/simple/M2Crypto/ Best match: M2Crypto 0.22.3 Downloading https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz#md5=573f21aaac7d5c9549798e72ffcefedd Processing M2Crypto-0.22.3.tar.gz Writing /tmp/easy_install-5hkA4l/M2Crypto-0.22.3/setup.cfg Running M2Crypto-0.22.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5hkA4l/M2Crypto-0.22.3/egg-dist-tmp-pZ_OGN /usr/include/openssl/opensslconf.h:36: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing. error: Setup script exited with error: command 'swig' failed with exit status
wget https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz #下载源码 tar zxvf M2Crypto/M2Crypto-0.22.3.tar.gz # 解压 cd M2Crypto-0.22.3
2. 然后创建安装脚本,内容如下:
# vim fedora_setup.sh #!/bin/sh # This script is meant to work around the differences on Fedora Core-based# distributions (Redhat, CentOS, ...) compared to other common Linux # distributions. # # Usage: ./fedora_setup.sh [setup.py options] #
arch=`uname -m` for i in SWIG/_{ec,evp}.i; do sed -i -e "s/opensslconf\./opensslconf-${arch}\./""$i" done
docker pull 172.16.18.159:5000/ubuntu:12.04 Error: Invalid registry endpoint https://172.16.18.159:5000/v1/: Get https://172.16.18.159:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS withan unknown CA certificate, please add `--insecure-registry http://172.16.18.159:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/http://172.16.18.159:5000/ca.crt
# Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled --insecure-registry 172.16.18.159:5000' DOCKER_CERT_PATH=/etc/docker