Make build work on Mac OS X 10.7 Lion
[novacoin.git] / doc / build-osx.txt
1 Copyright (c) 2011 Bitcoin Developers
2 Distributed under the MIT/X11 software license, see the accompanying file
3 license.txt or http://www.opensource.org/licenses/mit-license.php.  This
4 product includes software developed by the OpenSSL Project for use in the
5 OpenSSL Toolkit (http://www.openssl.org/).  This product includes cryptographic
6 software written by Eric Young (eay@cryptsoft.com) and UPnP software written by
7 Thomas Bernard.
8
9
10 Mac OS X bitcoind build instructions
11 Laszlo Hanyecz <solar@heliacal.net>
12 Douglas Huff <dhuff@jrbobdobbs.org>
13
14
15 See readme-qt.rst for instructions on building Bitcoin QT, the
16 graphical user interface.
17
18 Tested on 10.5 and 10.6 intel.  PPC is not supported because it's big-endian.
19
20 All of the commands should be executed in Terminal.app.. it's in
21 /Applications/Utilities
22
23 You need to install XCode with all the options checked so that the compiler and
24 everything is available in /usr not just /Developer I think it comes on the DVD
25 but you can get the current version from http://developer.apple.com
26
27
28 1.  Clone the github tree to get the source code:
29
30 git clone git@github.com:bitcoin/bitcoin.git bitcoin
31
32 2.  Download and install MacPorts from http://www.macports.org/
33
34 2a. (for 10.7 Lion)
35     Edit /opt/local/etc/macports/macports.conf and uncomment "build_arch i386"
36
37 3.  Install dependencies from MacPorts
38
39 sudo port install boost db48 openssl
40
41 Install the right version of miniupnpc:
42 pushd bitcoin/contrib/minipupnpc; sudo port install; popd
43 (this will be unnecessary soon, you will just port install miniupnpc
44 along with the rest of the dependencies).
45
46 4.  Now you should be able to build bitcoind:
47
48 cd bitcoin/src
49 make -f makefile.osx
50
51 Run:
52   ./bitcoind --help  # for a list of command-line options.
53 Run
54   ./bitcoind -daemon # to start the bitcoin daemon.
55 Run
56   ./bitcoind help # When the daemon is running, to get a list of RPC commands