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

Why these two lines don't let OSX install vanitygen? #20

Open
rdymac opened this issue Feb 1, 2013 · 13 comments
Open

Why these two lines don't let OSX install vanitygen? #20

rdymac opened this issue Feb 1, 2013 · 13 comments

Comments

@rdymac
Copy link

rdymac commented Feb 1, 2013

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 */

@colindean
Copy link

OSX uses an older version of openssl libraries out of the box.

[colin@kid vanitygen]$ openssl version
OpenSSL 0.9.8r 8 Feb 2011

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 make?

@rdymac
Copy link
Author

rdymac commented Mar 15, 2013

OSX 10.8.2

@colindean
Copy link

If you can, please post the output of make. I'm running 10.8.3 and it's working (building and running), but just throwing a lot of compilation warnings. I don't think there was a change to OpenSSL between 10.8.2 and 10.8.3.

@rdymac
Copy link
Author

rdymac commented Mar 16, 2013

I'll do, ASAP. Has no internet connection now (except mobile).

@ELLIOTTCABLE
Copy link

Try this:

brew install openssl

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

@colindean
Copy link

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 $(shell brew --prefix openssl) in a variable and reference that. I've run into this problem a few times, primarily creating a steady stream of "those paths are out of date" messages.

@ELLIOTTCABLE
Copy link

@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 vanitygen formula to WyseNynja/homebrew-bitcoin?

@colindean
Copy link

Maybe I should! :-)

elliottcable notifications@github.com wrote:

@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
vanitygen formula to WyseNynja/homebrew-bitcoin?


Reply to this email directly or view it on GitHub:
#20 (comment)

@colindean
Copy link

Boom.

BlinkyStitt/homebrew-bitcoin#2

@colindean
Copy link

See also #25.

@rdymac
Copy link
Author

rdymac commented Apr 1, 2013

Have just done:
$ make

With the latest vanitigen git and got lots of warning, but installed without problem. When running it shows:
WARNING: Built with OpenSSL 0.9.8r 8 Feb 2011
WARNING: Use OpenSSL 1.0.0d+ for best performance

Homebew latest OpenSSL is openssl-1.0.1e

@colindean
Copy link

@rdymac try my branch in #25 or use WyseNinja/homebrew-bitcoin keg to install with the correct version of OpenSSL.

@pendashteh
Copy link

For issues regarding compiling on a Mac, check out the instruction here:
https://github.com/pendashteh/vanitygen/blob/macosx/INSTALL

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

4 participants