首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >为scrypt python ethereum (pyethapp)构建轮子失败

为scrypt python ethereum (pyethapp)构建轮子失败
EN

Stack Overflow用户
提问于 2017-05-31 22:06:31
回答 3查看 2.2K关注 0票数 1

在Ubuntu上安装pyethapp时,我的编译终止了两次。

首先,我安装了包:

代码语言:javascript
复制
apt-get install build-essential automake pkg-config libtool libffi-dev libgmp-dev

我创建了virtualenv,并尝试使用pip在venv中安装pyethapp:

代码语言:javascript
复制
pip install mytheapp

但它崩溃了,出现了以下两个错误:

1.)

代码语言:javascript
复制
#include <openssl/aes.h>
                           ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for scrypt

2.)

代码语言:javascript
复制
    scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:25: fatal error: openssl/aes.h: No such file or directory
     #include <openssl/aes.h>
                             ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/iceing/.virtualenvs/pyethapp/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3PNrgn/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-SSJvgT-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/iceing/.virtualenvs/pyethapp/include/site/python2.7/scrypt" failed with error code 1 in /tmp/pip-build-3PNrgn/scrypt/
EN

回答 3

Stack Overflow用户

发布于 2017-09-29 23:54:24

这个方法对我很有效:

代码语言:javascript
复制
sudo apt-get install libssl-dev 
票数 3
EN

Stack Overflow用户

发布于 2017-06-01 00:45:56

看起来你需要OpenSSL:

代码语言:javascript
复制
apt-get install openssl
票数 2
EN

Stack Overflow用户

发布于 2018-08-01 04:46:02

首先尝试安装

代码语言:javascript
复制
sudo apt-get install openssl

但是,如果它仍然不能工作,请尝试安装

代码语言:javascript
复制
sudo apt-get install libssl-dev 

到目前为止,它应该工作得很好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44287006

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档