steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 98 forks source link

package doesn't install gracefully on macos #78

Open john-g-g opened 7 years ago

john-g-g commented 7 years ago
    #include <openssl/aes.h>
             ^~~~~~~~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1

This is technically an scrypt issue, but we depend on it so we should fix it. As a workaround, I use this code in my Makefile:

if [[ $(shell uname) == 'Darwin' ]]; then \
    brew install openssl; \
    env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" 
fi

The installation should, at the very least, check the default hombrew openssl lib location, with an instructional error message in the event homebrew and/or openssl not installed

GwenNelson commented 7 years ago

This is likely the cause of the build issue for yo on OS X too.

Please supply a patch to the makefile that includes your fix and we can update pypi to make it work.

DoguD commented 5 years ago

@john-g-g When I also run the below commands after brew install openssl it fixed my problems. export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"