Update all copyrights to 2012
[novacoin.git] / doc / build-osx.txt
1 Copyright (c) 2009-2012 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 miniupnpc
40
41 Optionally install qrencode (and set USE_QRCODE=1):
42 sudo port install qrencode
43
44 4.  Now you should be able to build bitcoind:
45
46 cd bitcoin/src
47 make -f makefile.osx
48
49 Run:
50   ./bitcoind --help  # for a list of command-line options.
51 Run
52   ./bitcoind -daemon # to start the bitcoin daemon.
53 Run
54   ./bitcoind help # When the daemon is running, to get a list of RPC commands