Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomachinz opened this issue Oct 7, 2017 · 10 comments
Open

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

tomachinz opened this issue Oct 7, 2017 · 10 comments

Comments

@tomachinz
Copy link

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 ❯❯❯_

@viktorstrate
Copy link

Use this make file e93ff8c

@redpola
Copy link

redpola commented Dec 6, 2017

@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

@viktorstrate
Copy link

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

@xRuby
Copy link

xRuby commented Feb 27, 2018

do you reslove it ?

@madikizelap
Copy link

Not resolved

@kenorb
Copy link

kenorb commented Apr 23, 2018

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
Copy link

kenorb commented Apr 23, 2018

PR #75 fixes the issue.

This was referenced Apr 23, 2018
@kenorb
Copy link

kenorb commented Apr 23, 2018

Related: #65

This was referenced Apr 23, 2018
@kenorb
Copy link

kenorb commented Apr 23, 2018

@pootsniff
Copy link

pootsniff commented Apr 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants