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-unix.txt 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Copyright (c) 2009-2010 Satoshi Nakamoto
  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. UNIX BUILD NOTES
  9. ================
  10. To Build
  11. --------
  12. cd src/
  13. make -f makefile.unix # Bitcoin with wxWidgets GUI
  14. or
  15. make -f makefile.unix bitcoind # Headless bitcoin
  16. Dependencies
  17. ------------
  18. sudo apt-get install build-essential
  19. sudo apt-get install libgtk2.0-dev
  20. sudo apt-get install libssl-dev
  21. sudo apt-get install libdb4.8-dev
  22. sudo apt-get install libdb4.8++-dev
  23. Boost 1.40+: sudo apt-get install libboost-all-dev
  24. or Boost 1.37: sudo apt-get install libboost1.37-dev
  25. If using Boost 1.37, append -mt to the boost libraries in the makefile.
  26. Requires wxWidgets 2.9.0 or greater, which uses UTF-8. Don't try 2.8, it
  27. won't work.
  28. You need to download wxWidgets from http://www.wxwidgets.org/downloads/
  29. and build it yourself. See the build instructions and configure parameters
  30. below.
  31. Requires miniupnpc for UPnP port mapping. It can be downloaded from
  32. http://miniupnp.tuxfamily.org/files/. UPnP support is compiled in and
  33. turned off by default. Set USE_UPNP to a different value to control this:
  34. USE_UPNP= no UPnP support, miniupnp not required;
  35. USE_UPNP=0 (the default) UPnP support turned off by default at runtime;
  36. USE_UPNP=1 UPnP support turned on by default at runtime.
  37. Licenses of statically linked libraries:
  38. wxWidgets LGPL 2.1 with very liberal exceptions
  39. Berkeley DB New BSD license with additional requirement that linked software must be free open source
  40. Boost MIT-like license
  41. miniupnpc New (3-clause) BSD license
  42. Versions used in this release:
  43. GCC 4.3.3
  44. OpenSSL 0.9.8g
  45. wxWidgets 2.9.2
  46. Berkeley DB 4.8.30.NC
  47. Boost 1.37
  48. miniupnpc 1.6
  49. Notes
  50. -----
  51. The UI layout is edited with wxFormBuilder. The project file is
  52. uiproject.fbp. It generates uibase.cpp and uibase.h, which define base
  53. classes that do the rote work of constructing all the UI elements.
  54. The release is built with GCC and then "strip bitcoin" to strip the debug
  55. symbols, which reduces the executable size by about 90%.
  56. wxWidgets
  57. ---------
  58. cd /usr/local
  59. tar -xzvf wxWidgets-2.9.2.tar.gz
  60. cd wxWidgets-2.9.2
  61. mkdir buildgtk
  62. cd buildgtk
  63. ../configure --with-gtk --enable-debug --disable-shared --enable-monolithic --without-libpng --disable-svg
  64. make
  65. sudo su
  66. make install
  67. ldconfig
  68. miniupnpc
  69. ---------
  70. tar -xzvf miniupnpc-1.6.tar.gz
  71. cd miniupnpc-1.6
  72. make
  73. sudo su
  74. make install
  75. Berkeley DB
  76. -----------
  77. You need Berkeley DB 4.8. If you have to build Berkeley DB yourself:
  78. ../dist/configure --enable-cxx
  79. make
  80. Boost
  81. -----
  82. If you need to build Boost yourself:
  83. sudo su
  84. ./bootstrap.sh
  85. ./bjam install