2017-05-31 160 views
1

在Ubuntu上安裝pyethapp時,我的編譯終止了2次。scrypt失敗的建築輪 - python ethereum(pyethapp)

首先,我安裝的軟件包:

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/ 

回答

1

看來你需要OpenSSL的:對我來說

apt-get install openssl 
+0

我的OpenSSL已經安裝 –

+0

有沒有在/ usr/include/openssl/aes.h? – phd

+0

是的,這是..... –

3

這一個工作:

sudo apt-get install libssl-dev