diff options
author | Rose Toomey <rktoomey@gmail.com> | 2014-08-20 18:26:29 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-21 18:28:40 +0200 |
commit | 49df14d2952d143463d9331babc11b17fb113f13 (patch) | |
tree | 878002a37779fa68d8e561d6a4972c4543870da1 /doc | |
parent | 47c78c296607293e6a63998da83424d9eecc43e5 (diff) | |
download | bitcoin-49df14d2952d143463d9331babc11b17fb113f13.tar.xz |
Update build-osx.md
The homebrew instructions were outdated - berkeley-db4 hasn't worked for months, based on the questions I'm seeing on Google/SO. So I added a section explaining how to install berkeley-db4 using homebrew and move on with your life. Thanks for the rest of the documentation!
Conflicts:
doc/build-osx.md
Rebased-From: b1ed7c2
Diffstat (limited to 'doc')
-rw-r--r-- | doc/build-osx.md | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/build-osx.md b/doc/build-osx.md index 0de5c792e9..0e2e4580a0 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -74,7 +74,7 @@ Instructions: Homebrew #### Install dependencies using Homebrew - brew install autoconf automake berkeley-db4 boost miniupnpc openssl pkg-config protobuf qt + brew install autoconf automake libtool boost miniupnpc openssl pkg-config protobuf qt Note: After you have installed the dependencies, you should check that the Homebrew installed version of OpenSSL is the one available for compilation. You can check this by typing @@ -90,6 +90,29 @@ Rerunning "openssl version" should now return the correct version. If it doesn't, make sure `/usr/local/bin` comes before `/usr/bin` in your PATH. +#### Installing berkeley-db4 using Homebrew + +The homebrew package for berkeley-db4 has been broken for some time. It will install without Java though. + +Running this command takes you into brew's interactive mode, which allows you to configure, make, and install by hand: +``` +$ brew install https://raw.github.com/mxcl/homebrew/master/Library/Formula/berkeley-db4.rb -–without-java +``` + +These rest of these commands are run inside brew interactive mode: +``` +/private/tmp/berkeley-db4-UGpd0O/db-4.8.30 $ cd .. +/private/tmp/berkeley-db4-UGpd0O $ db-4.8.30/dist/configure --prefix=/usr/local/Cellar/berkeley-db4/4.8.30 --mandir=/usr/local/Cellar/berkeley-db4/4.8.30/share/man --enable-cxx +/private/tmp/berkeley-db4-UGpd0O $ make +/private/tmp/berkeley-db4-UGpd0O $ make install +/private/tmp/berkeley-db4-UGpd0O $ exit +``` + +After exiting, you'll get a warning that the install is keg-only, which means it wasn't symlinked to `/usr/local`. You don't need it to link it to build bitcoin, but if you want to, here's how: + + $ brew --force link berkeley-db4 + + ### Building `bitcoind` 1. Clone the github tree to get the source code and go into the directory. |