Python Forum

Full Version: LIB install failure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is failing for me. Please Advise.

sudo apt install git
sudo git clone https://github.com/ethereum/pyethereum
cd pyethereum
sudo python3 setup.py install
Installed /usr/local/lib/python3.5/dist-packages/pyethash-0.1.27-py3.5-linux-x86_64.egg
Searching for scrypt
Reading https://pypi.python.org/simple/scrypt/
Best match: scrypt 0.8.0
Downloading https://pypi.python.org/packages/af/82/44b030646b9de44ba5a5c7e87b0419a4d44318ba18468f5292b9c16737ac/scrypt-0.8.0.tar.gz#md5=0704e59cc3afb3845c27bb3827baeea9
Processing scrypt-0.8.0.tar.gz
Writing /tmp/easy_install-uap645pz/scrypt-0.8.0/setup.cfg
Running scrypt-0.8.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uap645pz/scrypt-0.8.0/egg-dist-tmp-viapitso
scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:25: fatal error: openssl/aes.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
(Jun-07-2017, 05:53 PM)Able98 Wrote: [ -> ]scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:25: fatal error: openssl/aes.h: No such file or directory
Looks like it needs the openssl source available in order to compile. Supposing your on linux (based on the first block, with sudo/apt, I'm guessing you're on a Debian based distro), you could possibly fix it using sudo apt install openssl-dev.

Otherwise, check the package's docs to see what requirements it has.
Solved it. It was in the docs as you said. Had to do this first:

sudo apt-get install libssl-dev