You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-osx.txt 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Copyright (c) 2009-2012 Bitcoin Developers
  2. Distributed under the MIT/X11 software license, see the accompanying
  3. file license.txt or http://www.opensource.org/licenses/mit-license.php.
  4. This product includes software developed by the OpenSSL Project for use in
  5. the OpenSSL Toolkit (http://www.openssl.org/). This product includes
  6. cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP
  7. software written by Thomas Bernard.
  8. Mac OSX bitcoind build instructions
  9. Laszlo Hanyecz <solar@heliacal.net>
  10. Douglas Huff <dhuff@jrbobdobbs.org>
  11. See readme-qt.rst for instructions on building Bitcoin-Qt, the
  12. graphical user interface.
  13. Tested on 10.5, 10.6 and 10.7 intel. PPC is not supported because it's big-endian.
  14. All of the commands should be executed in Terminal.app.. it's in
  15. /Applications/Utilities
  16. You need to install XCode with all the options checked so that the compiler and
  17. everything is available in /usr not just /Developer. XCode should be available on your OSX
  18. install DVD, but if not, you can get the current version from https://developer.apple.com/xcode/
  19. 1. Clone the github tree to get the source code:
  20. git clone git@github.com:bitcoin/bitcoin.git bitcoin
  21. 2. Download and install MacPorts from http://www.macports.org/
  22. 2a. (for 10.7 Lion)
  23. Edit /opt/local/etc/macports/macports.conf and uncomment "build_arch i386"
  24. 3. Install dependencies from MacPorts
  25. sudo port install boost db48 openssl miniupnpc
  26. Optionally install qrencode (and set USE_QRCODE=1):
  27. sudo port install qrencode
  28. 4. Now you should be able to build bitcoind:
  29. cd bitcoin/src
  30. make -f makefile.osx USE_IPV6=1
  31. Run:
  32. ./bitcoind --help # for a list of command-line options.
  33. Run
  34. ./bitcoind -daemon # to start the bitcoin daemon.
  35. Run
  36. ./bitcoind help # When the daemon is running, to get a list of RPC commands