Last active
August 29, 2015 14:11
-
-
Save curtislacy/b28193606f4b6ed33496 to your computer and use it in GitHub Desktop.
bitcoind build instructions.
This file contains 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
bitcoin@goldcust1:~$ sudo apt-get install -y openssh-server git libminiupnpc-dev build-essential autoconf libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler | |
bitcoin@goldcust1:~$ sudo apt-get install pkg-config | |
bitcoin@goldcust1:~$ cd $HOME | |
bitcoin@goldcust1:~$ wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz | |
bitcoin@goldcust1:~$ tar -xvf db-4.8.30.NC.tar.gz | |
bitcoin@goldcust1:~$ cd db-4.8.30.NC/build_unix | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ BDB_PREFIX=$(pwd)/build | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ ../dist/configure --disable-shared --enable-cxx --prefix=$BDB_PREFIX CPPFLAGS="-fPIC" | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ make install | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ cd $HOME | |
bitcoin@goldcust1:~$ git clone https://github.com/digitaltangibletrust/bitcoin.git | |
bitcoin@goldcust1:~$ cd bitcoin | |
bitcoin@goldcust1:~/bitcoin$ git checkout 0.9.3 | |
bitcoin@goldcust1:~/bitcoin$ ./autogen.sh | |
bitcoin@goldcust1:~/bitcoin$ ./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2 -fPIC" LDFLAGS="-L${BDB_PREFIX}/lib/" --with-gui=no --with-qrencode=no | |
bitcoin@goldcust1:~/bitcoin$ make | |
bitcoin@goldcust1:~/bitcoin$ sudo make install | |
bitcoin@goldcust1:~/bitcoin$ bitcoind stop | |
bitcoin@goldcust1:~/bitcoin$ bitcoind --reindex -addrindex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment