0

我正在尝试使用 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

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

4

1 回答 1

-1

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

  1. wget 源代码 gzip 包来自https://www.openssl.org/source/
  2. 配置&&制作&&制作安装

祝你好运!

于 2017-02-23T12:44:04.263 回答