vanitygen-plusplus icon indicating copy to clipboard operation
vanitygen-plusplus copied to clipboard

Mac mini M1 - 'openssl/sha.h' file not found

Open bane77111 opened this issue 2 years ago • 6 comments

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!

bane77111 avatar Sep 17 '22 06:09 bane77111

May be you need install openssl. Try run brew install [email protected] firstly.

10gic avatar Sep 17 '22 06:09 10gic

i already have it,...

May be you need install openssl. Try run brew install [email protected] firstly.

I already have it

bane77111 avatar Sep 17 '22 07:09 bane77111

Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.

10gic avatar Sep 17 '22 10:09 10gic

Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.

np, thanks for trying

bane77111 avatar Sep 17 '22 10:09 bane77111

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.)

cbrunnkvist avatar Jun 25 '23 09:06 cbrunnkvist

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!