openssl/sha.h file not found
danijeljw opened this issue ยท 5 comments
danijeljw commented
Cloned to local directory on OS X (10.11.4) then typed in make
and received following error:
| => make
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
danijeljw commented
OK, so I went back over this and did the following:
| => brew install openssl
Warning: openssl-1.0.2g already installed
Cool, so openSSL is already installed. Let me try installing Xcode Tools again:
| => xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Maybe re-link the openSSL libraries ?
| => brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.2g... 1588 symlinks created
Now let's try to rebuild this thing again:
| => make
cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c
cc -ggdb -O3 -Wall -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
Undefined symbols for architecture x86_64:
"_PKCS5_PBKDF2_HMAC", referenced from:
_vg_protect_crypt in util.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vanitygen] Error 1
Now I don't know what to do. ๐
danijeljw commented
In the end I was only able to make vanitygen work with the steps listed:
brew tap WyseNynja/bitcoin
brew install vanitygen
And now I can use vanitygen like:
vanitygen -v -t 1 -o ~/generated.txt 1LIFE
Special thanks to @XxUnkn0wnxX for providing this solution for us. Thank you! ๐ ๐ ๐
stefek99 commented
Same here, brew solutions works.
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```
yhuag commented
Another solution from mongodb issue
also works!!
Try do:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .