error: command '/usr/bin/clang' failed with exit status 1
glaksmono opened this issue ยท 9 comments
I'm trying to install this following this tutorial: https://ico.readthedocs.io/en/latest/install.html for Mac OS X, and I'm getting the following error:
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/glaksmono/Documents/ico/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/j1/r4dzzr892pd5v6wk_v78_kvc0000gn/T/pip-build-1p6nmgox/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 /var/folders/j1/r4dzzr892pd5v6wk_v78_kvc0000gn/T/pip-n58mf4ei-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/glaksmono/Documents/ico/venv/include/site/python3.6/scrypt" failed with error code 1 in /private/var/folders/j1/r4dzzr892pd5v6wk_v78_kvc0000gn/T/pip-build-1p6nmgox/scrypt/
Thoughts?
OSX Version: 10.13.3
I tried to execute the following but always stuck:
git:(master) โ pip install pyethapp
Collecting pyethapp
Using cached pyethapp-1.5.0-py2.py3-none-any.whl
Collecting rlp>=0.4.4 (from pyethapp)
Using cached rlp-0.6.0.tar.gz
Collecting pbkdf2 (from pyethapp)
Using cached pbkdf2-1.3.tar.gz
Collecting gipc==0.4.0 (from pyethapp)
Using cached gipc-0.4.0.zip
Collecting CodernityDB (from pyethapp)
Using cached CodernityDB-0.5.0.tar.gz
Collecting requests (from pyethapp)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting wheel (from pyethapp)
Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting scrypt (from pyethapp)
Using cached scrypt-0.8.6-cp27-cp27m-macosx_10_11_x86_64.whl
Collecting werkzeug (from pyethapp)
Using cached Werkzeug-0.14.1-py2.py3-none-any.whl
Collecting ethereum>=1.5.1 (from pyethapp)
Using cached ethereum-2.3.0.tar.gz
Collecting ipython<5.0.0,>=3.0.0 (from pyethapp)
Using cached ipython-4.2.1-py2-none-any.whl
Collecting gevent==1.1.0 (from pyethapp)
Using cached gevent-1.1.0-cp27-cp27m-macosx_10_6_intel.whl
Collecting devp2p>=0.8.0 (from pyethapp)
Using cached devp2p-0.9.3.tar.gz
Did you install openssl?
may be this https://funblockchain.com/index.php/2018/02/20/installing-parity-geth-and-configuring-centos-7-to-deploy-a-smart-contract-using-ropsten-testnet/ will help you
Thanks
I am unable to help because I cannot repeat the problem.
However, I believe the error happens when it is installing scrypt
package:
https://pypi.org/project/scrypt/
I suggest you try to install it by hand:
pip install scrypt
... and then resolve according to scrypt documentation and their support.
So, you need to do this:
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install -r requirements.txt
Got this to work for me on High Sierra with MACOSX_DEPLOYMENT_TARGET=10.13 pip install pytype
.
Try:
export CXX=clang
If it doesn't work try:
export CC=/usr/bin/clang
or
export CXX=/usr/bin/clang++
Got this to work for me on High Sierra with
MACOSX_DEPLOYMENT_TARGET=10.13 pip install pytype
.
work for me
Using python 3.10, Mac Monterey 12.4. I needed to add these two flags:
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
Original solution from stack overflow here: Error when install pylibmc using pip