【问题标题】:Issue installing mitmproxy using pip on Amazon EC2 instance (CentOS)在 Amazon EC2 实例 (CentOS) 上使用 pip 安装 mitmproxy 时出现问题
【发布时间】:2016-06-19 23:31:11
【问题描述】:

我正在尝试使用 pip 在我的 EC2 linux 实例上安装 mitproxy:

sudo pip install mitmproxy

我已经安装了 python2.7,现在有 2 个 libffi 实例

$ rpm -qa | grep libff libffi-3.0.13-11.4.amzn1.x86_64 libffi-devel-3.0.13-11.4.amzn1.x86_64

但每次我尝试运行安装命令时都会收到以下错误消息:

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o build/temp.linux-x86_64-2.7/_openssl.c:423:30: fatal error: openssl/opensslv.h: No such file or directory #include <openssl/opensslv.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1

有什么想法我哪里出错了吗?

【问题讨论】:

  • 这仍然是个问题

标签: amazon-ec2 centos pip mitmproxy libffi


【解决方案1】:

刚刚通过以下解决方案解决了问题:

  1. wget源代码gzip包来自https://www.openssl.org/source/
  2. config&&make&&make install

祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-04
    • 1970-01-01
    • 1970-01-01
    • 2023-01-01
    • 1970-01-01
    相关资源
    最近更新 更多