vanitygen-plusplus
vanitygen-plusplus copied to clipboard
Mac mini M1 - 'openssl/sha.h' file not found
Do anyone knows how to resolve the issue for this error, on Mac mini M1:
-Mac-mini vanitygen-plusplus % make cc -ggdb -O3 -Wall -I/usr/local/opt/openssl/include -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^~~~~~~~~~~~~~~
Thanks!
May be you need install openssl. Try run brew install [email protected]
firstly.
i already have it,...
May be you need install openssl. Try run
brew install [email protected]
firstly.
I already have it
Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.
Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.
np, thanks for trying
Assuming you have already installed OpenSSL via Homebrew (brew install openssl
), the easiest way is something like:
C_INCLUDE_PATH=/opt/homebrew/opt/openssl/include:/opt/homebrew/include LIBRARY_PATH=/opt/homebrew/opt/openssl/lib make all
There might be some ld: warning: directory not found
warning, but it's just the linker that gets confused. Ideally the Makefile
should be rewritten for portability, as suggested in a different issue, but in a less hardcoded way.
(footnote: the make all
target will successfully compile all the ocl- variant executables too, but I can not say how well or bad they will work on macOS/arm64. You probably need a "Pro" CPU model for any OCL stuff to have any positive impact either way.)
Do anyone knows how to resolve the issue for this error, on Mac mini M1:
-Mac-mini vanitygen-plusplus % make cc -ggdb -O3 -Wall -I/usr/local/opt/openssl/include -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^~~~~~~~~~~~~~~
Thanks!
Have you solved your issue? I have troubles to make it on a Mac too!