vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

fatal error: 'openssl/sha.h' file not found

Open tomachinz opened this issue 8 years ago • 10 comments

I'm on Mac os 10.12.6 and after pulling down from github when I try to rub "make" I get a fatal error about OpenSSL header file not found?

_~/G/vanitygen ❯❯❯ make master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯ brew install openssl ✘ 2 master Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). No changes to formulae.

Warning: openssl 1.0.2l is already installed ~/G/vanitygen ❯❯❯ make master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯ ls ✘ 2 master CHANGELOG LICENSE Makefile.Win32 avl.h keyconv.c oclengine.h oclvanityminer.c pattern.h util.h winglue.c INSTALL Makefile README calc_addrs.cl oclengine.c oclvanitygen.c pattern.c util.c vanitygen.c winglue.h ~/G/vanitygen ❯❯❯ ./make master zsh: no such file or directory: ./make ~/G/vanitygen ❯❯❯ make ✘ 127 master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯_

tomachinz avatar Oct 07 '17 13:10 tomachinz

Use this make file https://github.com/samr7/vanitygen/pull/75/commits/e93ff8c9dcb572efad0a8b01aab04c67c476f21c

viktorstrate avatar Nov 14 '17 20:11 viktorstrate

@viktorstrate That makefile adds a dependency on brew! Was that intentional? What about those of us who use macports rather than brew?

Here's the openssl I have installed using macports:

openssl @1.0.2m devel/openssl

redpola avatar Dec 06 '17 18:12 redpola

I am not the author of the make file. But the brew commands, are not to install any packages, they are used to find packages installed by brew.

To fix it try to replace $(shell brew --prefix openssl) with the path where openssl is installed using macports.

INCPATHS=-I[PATH_TO_OPENSSL]/include
LIBPATHS=-L[PATH_TO_OPENSSL]/lib

Replace [PATH_TO_OPENSSL] with your path

viktorstrate avatar Dec 09 '17 20:12 viktorstrate

do you reslove it ?

xRuby avatar Feb 27 '18 08:02 xRuby

Not resolved

madikizelap avatar Feb 27 '18 15:02 madikizelap

Makefile from e93ff8c works great.

$ make -f <(curl -sL https://raw.githubusercontent.com/samr7/vanitygen/e93ff8c9dcb572efad0a8b01aab04c67c476f21c/Makefile.osx)

Can we add this to master?

kenorb avatar Apr 23 '18 00:04 kenorb

PR #75 fixes the issue.

kenorb avatar Apr 23 '18 01:04 kenorb

Related: #65

kenorb avatar Apr 23 '18 02:04 kenorb

Fixed in: https://github.com/exploitagency/vanitygen-plus

kenorb avatar Apr 23 '18 10:04 kenorb

Looks like Mac dropped support for openssl: https://www.anintegratedworld.com/mac-osx-fatal-error-opensslsha-h-file-not-found/

On Sat, Oct 7, 2017 at 8:43 AM, Tom Atkinson [email protected] wrote:

I'm on Mac os 10.12.6 and after pulling down from github when I try to rub "make" I get a fatal error about OpenSSL header file not found?

_~/G/vanitygen ❯❯❯ make master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯ brew install openssl ✘ 2 master Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). No changes to formulae.

Warning: openssl 1.0.2l is already installed ~/G/vanitygen ❯❯❯ make master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯ ls ✘ 2 master CHANGELOG LICENSE Makefile.Win32 avl.h keyconv.c oclengine.h oclvanityminer.c pattern.h util.h winglue.c INSTALL Makefile README calc_addrs.cl oclengine.c oclvanitygen.c pattern.c util.c vanitygen.c winglue.h ~/G/vanitygen ❯❯❯ ./make master zsh: no such file or directory: ./make ~/G/vanitygen ❯❯❯ make ✘ 127 master cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [vanitygen.o] Error 1 ~/G/vanitygen ❯❯❯_

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/samr7/vanitygen/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AF93xAzLthqAEgU0W0YAVuBhIzvHGVKTks5sp4AegaJpZM4PxWqC .

pootsniff avatar Apr 23 '18 17:04 pootsniff