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. 然后创建安装脚本,内容如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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"doneSWIG_FEATURES=-cpperraswarn python setup.py $*
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 with an 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
# /etc/sysconfig/docker
# 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