ethereum / pyethapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found

Crayon277 opened this issue · comments

Thanks for taking your time to create an issue report! This is invaluable to the project. Below there are some basic sections, we ask you to fill in.

You may remove the explanatory block above from your issue report before submitting.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Checklist

  • installed pyethapp inside a virtualenv

System/environment

  • OS: macOS Sierra 10.12.3
  • python version: 2.7.12
  • pyethapp version: can't install successfully
  • installation method (pip & pypi/git & setup.py): pip install pyethapp
  • pyethapp branch (if applicable): FIXME

Expected behaviour

Uh...maybe Done!

Observed behaviour

....
scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------
Command "/Users/Crayon_277/Develop/Ethereum/pyethapp/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/py/0gqprtwx2wd_zvrlz6hlq2r40000gn/T/pip-build-PtHskm/scrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/py/0gqprtwx2wd_zvrlz6hlq2r40000gn/T/pip-feLEKw-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/Crayon_277/Develop/Ethereum/pyethapp/bin/../include/site/python2.7/scrypt" failed with error code 1 in /private/var/folders/py/0gqprtwx2wd_zvrlz6hlq2r40000gn/T/pip-build-PtHskm/scrypt

Steps to reproduce

FIXME

env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography work for me.

I'm on MacOS Sierra and ran into this issue. And I had to do:

  1. brew update
  2. brew upgrade openssl
  3. Took note of the paths for LDFLAGS and CPPFLAGS as listed when the brew install completed, mine shown below, verify yours before executing the next 2 commands
  4. export LDFLAGS="-L/usr/local/opt/openssl/lib"
  5. export CPPFLAGS="-I/usr/local/opt/openssl/include"
  6. pip install pyethapp

I had the same issue and resolved it by installing the package on Ubuntu 16.04.3 LTS

apt-get install libcurl4-openssl-dev

I'm on macOS Sierra I encountered this error after switching to the relevant Python version pyenv install 3.5.0; pyenv versions; pyenv global 3.5.0, installing relevant dependencies for macOS with brew install pkg-config libffi autoconf automake libtool openssl https://github.com/ethereum/pyethereum/wiki/Developer-Notes#installing-dependencies-for-os-x when I ran USE_PYETHEREUM_DEVELOP=1 python setup.py develop when trying to setup a different repo https://github.com/ethereum/sharding. The solution proposed by @mkoistinen worked.
For Step 3 I checked the values of LDFLAGS and CPPFLAGS and checked where openssl was installed with the following commands:

which openssl
echo $LDFLAGS
echo $CPPFLAGS
commented

Same error but now after "pip install pyethapp", I'm getting this error:
"Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gm/n4b0wjqn2538nrfh6_mggpxw0000gn/T/pip-build-gdanpij8/gipc/"