steem-python icon indicating copy to clipboard operation
steem-python copied to clipboard

package doesn't install gracefully on macos

Open john-g-g opened this issue 7 years ago • 2 comments

    #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

john-g-g avatar Oct 13 '17 19:10 john-g-g

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.

GwenNelson avatar Oct 18 '17 16:10 GwenNelson

@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"

DoguD avatar Apr 17 '19 15:04 DoguD