|
1 | 1 | UNIX BUILD NOTES
|
2 | 2 | ====================
|
3 |
| -Some notes on how to build Bitcoin in Unix. |
| 3 | +Some notes on how to build Bitcoin Core in Unix. |
4 | 4 |
|
5 | 5 | (for OpenBSD specific instructions, see [build-openbsd.md](build-openbsd.md))
|
6 | 6 |
|
@@ -61,49 +61,55 @@ Dependency Build Instructions: Ubuntu & Debian
|
61 | 61 | ----------------------------------------------
|
62 | 62 | Build requirements:
|
63 | 63 |
|
64 |
| - sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libevent-dev |
| 64 | + sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libevent-dev |
65 | 65 |
|
66 |
| -For Ubuntu 12.04 and later or Debian 7 and later libboost-all-dev has to be installed: |
| 66 | +On Ubuntu 15.10+ there are generic names for the individual boost development |
| 67 | +packages, so the following can be used to only install necessary parts of |
| 68 | +boost: |
67 | 69 |
|
68 |
| - sudo apt-get install libboost-all-dev |
| 70 | + apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-base-dev |
69 | 71 |
|
70 |
| - db4.8 packages are available [here](https://launchpad.net/~bitcoin/+archive/bitcoin). |
71 |
| - You can add the repository using the following command: |
| 72 | +For Ubuntu before 15.10, or Debian 7 and later libboost-all-dev has to be installed: |
| 73 | + |
| 74 | + sudo apt-get install libboost-all-dev |
| 75 | + |
| 76 | +BerkeleyDB is required for the wallet. db4.8 packages are available [here](https://launchpad.net/~bitcoin/+archive/bitcoin). |
| 77 | +You can add the repository and install using the following commands: |
72 | 78 |
|
73 | 79 | sudo add-apt-repository ppa:bitcoin/bitcoin
|
74 | 80 | sudo apt-get update
|
| 81 | + sudo apt-get install libdb4.8-dev libdb4.8++-dev |
75 | 82 |
|
76 |
| - Ubuntu 12.04 and later have packages for libdb5.1-dev and libdb5.1++-dev, |
77 |
| - but using these will break binary wallet compatibility, and is not recommended. |
| 83 | +Ubuntu and Debian have their own libdb-dev and libdb++-dev packages, but these will install |
| 84 | +BerkeleyDB 5.1 or later, which break binary wallet compatibility with the distributed executables which |
| 85 | +are based on BerkeleyDB 4.8. If you do not care about wallet compatibility, |
| 86 | +pass `--with-incompatible-bdb` to configure. |
78 | 87 |
|
79 |
| -For other Debian & Ubuntu (with ppa): |
80 |
| - |
81 |
| - sudo apt-get install libdb4.8-dev libdb4.8++-dev |
| 88 | +See the section "Disable-wallet mode" to build Bitcoin Core without wallet. |
82 | 89 |
|
83 | 90 | Optional:
|
84 | 91 |
|
85 |
| - sudo apt-get install libminiupnpc-dev (see --with-miniupnpc and --enable-upnp-default) |
| 92 | + sudo apt-get install libminiupnpc-dev (see --with-miniupnpc and --enable-upnp-default) |
86 | 93 |
|
87 | 94 | ZMQ dependencies:
|
88 | 95 |
|
89 | 96 | sudo apt-get install libzmq3-dev (provides ZMQ API 4.x)
|
90 | 97 |
|
91 |
| - |
92 | 98 | Dependencies for the GUI: Ubuntu & Debian
|
93 | 99 | -----------------------------------------
|
94 | 100 |
|
95 | 101 | If you want to build Bitcoin-Qt, make sure that the required packages for Qt development
|
96 |
| -are installed. Either Qt 4 or Qt 5 are necessary to build the GUI. |
| 102 | +are installed. Either Qt 5 or Qt 4 are necessary to build the GUI. |
97 | 103 | If both Qt 4 and Qt 5 are installed, Qt 4 will be used. Pass `--with-gui=qt5` to configure to choose Qt5.
|
98 | 104 | To build without GUI pass `--without-gui`.
|
99 | 105 |
|
100 |
| -To build with Qt 4 you need the following: |
| 106 | +To build with Qt 5 (recommended) you need the following: |
101 | 107 |
|
102 |
| - sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler |
| 108 | + sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler |
103 | 109 |
|
104 |
| -For Qt 5 you need the following: |
| 110 | +Alternatively, to build with Qt 4 you need the following: |
105 | 111 |
|
106 |
| - sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler |
| 112 | + sudo apt-get install libqt4-dev libprotobuf-dev protobuf-compiler |
107 | 113 |
|
108 | 114 | libqrencode (optional) can be installed with:
|
109 | 115 |
|
|
0 commit comments