Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: command '/usr/bin/clang' failed with exit status 1 #115

Closed
glaksmono opened this issue Feb 22, 2018 · 9 comments
Closed

error: command '/usr/bin/clang' failed with exit status 1 #115

glaksmono opened this issue Feb 22, 2018 · 9 comments

Comments

@glaksmono
Copy link

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?

@miohtama
Copy link
Contributor

Might it be this issue?

pyca/cryptography#2692

Which OSX version, and so on?

@glaksmono
Copy link
Author

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

@saravana87
Copy link

@miohtama
Copy link
Contributor

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.

@glaksmono
Copy link
Author

So, you need to do this:

env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install -r requirements.txt

@famousfilm
Copy link

Got this to work for me on High Sierra with MACOSX_DEPLOYMENT_TARGET=10.13 pip install pytype.

@cristinaBodnari
Copy link

Try:
export CXX=clang
If it doesn't work try:
export CC=/usr/bin/clang
or
export CXX=/usr/bin/clang++

@luolanfeixue
Copy link

Got this to work for me on High Sierra with MACOSX_DEPLOYMENT_TARGET=10.13 pip install pytype.

work for me

@excrispy
Copy link

excrispy commented Jul 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants