-
Notifications
You must be signed in to change notification settings - Fork 631
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
Why these two lines don't let OSX install vanitygen? #20
Comments
OSX uses an older version of openssl libraries out of the box.
The code between those two lines is necessary to provide a function that is present only in OpenSSL 1.0.0 and newer. What version of OSX are you on? Can you post the output of |
OSX 10.8.2 |
If you can, please post the output of |
I'll do, ASAP. Has no internet connection now (except mobile). |
Try this:
Then, patch <<EOF
diff --git i/Makefile w/Makefile
index 3486201..9afbc96 100644
--- i/Makefile
+++ w/Makefile
@@ -1,5 +1,5 @@
LIBS=-lpcre -lcrypto -lm -lpthread
-CFLAGS=-ggdb -O3 -Wall
+CFLAGS=-ggdb -O3 -Wall -I /usr/local/Cellar/openssl/1.0.1e/include -L /usr/local/Cellar/openssl/1.0.1e/l
OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o
PROGS=vanitygen keyconv oclvanitygen oclvanityminer
EOF (Assumes you have Homebrew for Mac installed. You should. Google it.) |
One recommendation, @ELLIOTTCABLE: It's not a very good idea to hardcode the openssl path for Homebrew, because it changes when new versions come out. Instead, stick |
@colindean: I deleted the makefile and all immediately after doing this; I simply used it to build vanitygen, and then got rid of all the sources. That said, your comment is very valuable. Why not submit a |
Maybe I should! :-) elliottcable notifications@github.com wrote:
|
See also #25. |
Have just done: With the latest vanitigen git and got lots of warning, but installed without problem. When running it shows: Homebew latest OpenSSL is openssl-1.0.1e |
For issues regarding compiling on a Mac, check out the instruction here: |
I couldn't install the on OSX using ' make ', so @Habbie told me to remove these two lines in ' util.c ' file and then I could finally install vanytigen.
line 353: #if OPENSSL_VERSION_NUMBER < 0x10000000L
line: 462: #endif /* OPENSSL_VERSION_NUMBER < 0x10000000L */
The text was updated successfully, but these errors were encountered: