【问题标题】:Failed building wheel for scrypt - python ethereum (pyethapp)scrypt 构建失败 - python ethereum (pyethapp)
【发布时间】:2017-05-31 14:06:31
【问题描述】:

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

首先,我安装了包:

apt-get install build-essential automake pkg-config libtool libffi-dev libgmp-dev

我制作了 virtualenv 并尝试使用 pip 在 venv 中安装 pyethapp:

pip install mytheapp

但它因以下 2 个错误而崩溃:

1.)

#include <openssl/aes.h>
                           ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

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

2.)

    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/

【问题讨论】:

    标签: python compilation pip virtualenvwrapper ethereum


    【解决方案1】:

    看来你需要 OpenSSL:

    apt-get install openssl
    

    【讨论】:

    • 有/usr/include/openssl/aes.h 吗?
    【解决方案2】:

    首先尝试安装

    sudo apt-get install openssl
    

    但是,如果仍然无法正常工作,请尝试安装

    sudo apt-get install libssl-dev 
    

    现在应该可以正常工作了。

    【讨论】:

      【解决方案3】:

      这个对我有用:

      sudo apt-get install libssl-dev 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-07-14
        • 1970-01-01
        • 2023-01-31
        • 2020-07-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-09
        相关资源
        最近更新 更多