aboutsummaryrefslogtreecommitdiff
path: root/doc/build-osx.txt
blob: a13f8d3ada2d681853dac4457663d60a2d826d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Copyright (c) 2011 Bitcoin Developers
Distributed under the MIT/X11 software license, see the accompanying file
license.txt or http://www.opensource.org/licenses/mit-license.php.  This
product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit (http://www.openssl.org/).  This product includes cryptographic
software written by Eric Young (eay@cryptsoft.com) and UPnP software written by
Thomas Bernard.


Mac OS X bitcoind build instructions
Laszlo Hanyecz <solar@heliacal.net>
Douglas Huff <dhuff@jrbobdobbs.org>


See readme-qt.rst for instructions on building Bitcoin QT, the
graphical user interface.

Tested on 10.5 and 10.6 intel.  PPC is not supported because it's big-endian.

All of the commands should be executed in Terminal.app.. it's in
/Applications/Utilities

You need to install XCode with all the options checked so that the compiler and
everything is available in /usr not just /Developer I think it comes on the DVD
but you can get the current version from http://developer.apple.com


1.  Clone the github tree to get the source code:

git clone git@github.com:bitcoin/bitcoin.git bitcoin

2.  Download and install MacPorts from http://www.macports.org/

3.  Install dependencies from MacPorts

sudo port install boost db48 openssl

Install the right version of miniupnpc:
pushd bitcoin/contrib/minipupnpc; sudo port install; popd
(this will be unnecessary soon, you will just port install miniupnpc
along with the rest of the dependencies).

4.  Now you should be able to build bitcoind:

cd bitcoin/src
make -f makefile.osx

Run:
  ./bitcoind --help  # for a list of command-line options.
Run
  ./bitcoind -daemon # to start the bitcoin daemon.
Run
  ./bitcoind help # When the daemon is running, to get a list of RPC commands