Forked from kostaz/Compile_Bitcoin_on_Ubuntu_14_04
Last active
February 19, 2017 09:15
-
-
Save v-thomp4/5ca30953e25d94f9446e1277aff22e30 to your computer and use it in GitHub Desktop.
Compile Bitcoin on Ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assuming the username of the Ubuntu user is "theusername". | |
Preparation | |
----------- | |
``` | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler | |
sudo apt-get install libqrencode-dev | |
sudo apt-get install libminiupnpc-dev | |
sudo apt-get install libdb++-dev bsdmainutils libevent-dev git wget | |
``` | |
Download bitcoin source code | |
----------------------------------- | |
``` | |
cd ~ | |
mkdir bitcoin/db4/ | |
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' | |
tar -xzvf db-4.8.30.NC.tar.gz | |
cd db-4.8.30.NC/build_unix/ | |
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/theusername/bitcoin/db4/ | |
make install | |
``` | |
Compile Bitcoin with Berkley DB 4.8 | |
----------------------------------- | |
``` | |
cd ~/bitcoin/ | |
./autogen.sh | |
./configure LDFLAGS="-L/home/theusername/bitcoin/db4/lib/" CPPFLAGS="-I/home/theusername/bitcoin/db4/include/" | |
make -s -j5 | |
``` | |
Run Bitcoin Daemon/QT/Client | |
---------------------------- | |
``` | |
./src/bitcoind | |
./src/bitcoin-qt | |
./src/bitcoin-cli | |
``` | |
Please share your experience and provide constructive feedback! | |
Thanks, | |
--- Kosta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment