Blockchain - andreydiveev/wiki GitHub Wiki

Bitcoin:

Installing bitcoind on Debian

Installing bitcoind in summary:

* git clone the bitcoin repository
* run the initial shell script autogen
* apt-get install the missing libdb_cxx headers
* apt-get install lib-all-boost
* ./configure --with-incompatible-bdb && make && sudo make install

Here's the steps I followed:

[# `./autogen.sh`
# `git clone https://github.com/bitcoin/bitcoin.git`
# `sudo apt-get install libdb5.1++-dev`
# `sudo apt-get install libboost-all-dev`
# `./configure --with-incompatible-bdb`
# `make`
# `sudo make install`
# `bitcoind` ]

## Resources

* [bitcoin/bitcoin](https://github.com/bitcoin/bitcoin)
* [Installing bitcoin in ubuntu](https://birdchan.com/home/2013/11/26/installing-bitcoin-in-ubuntu/)

bitcoin debian install howto

Packages

apt install git build-essential libssl-dev libdb5.3++-dev libboost-all-dev

BerkeleyDB

dpkg -S /usr/include/db_cxx.h

Build:

barcoin/src# make -f makefile.unix USE_UPNP=-

Qt wallet (Ubuntu):

apt install build-essential libssl-dev libboost-all-dev libdb5.3++-dev qt4-default qt4-qmake
qmake "USE_UPNP=-"
make

Build Berkeley-DB on Windows (in MinGW):

/c/deps$ tar xvfz db-4.8.30.NC.tar.gz
/c/deps$ cd db-4.8.30.NC/build_unix
/c/deps$ ../dist/configure --disable-replication --enable-mingw --enable-cxx
/c/deps$ make

Setup boost on Windows (in MinGW):

cd \deps\boost-1.53.0\
cmd //c /c/deps/boost_1_53_0/bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc stage

Install qt4 on macOS:

# brew install cartr/qt4/qt

Install Berkeley-DB (5.3.21) on macOS:

# curl -O http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
# tar -xvf db-5.3.21.tar.gz
# cd db-5.3.21/
# curl -OL https://raw.github.com/andreydiveev/os-x-berkeleydb-patch/master/atomic.patch
# patch src/dbinc/atomic.h < atomic.patch
# cd build_unix
# ../dist/configure --prefix=/Users/bmcduffi
# make
# make install

Curl JSON-RPC:

curl --user <username>:<password> --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

DASH:

apt install git build-essential libssl-dev libdb++-dev libboost-all-dev dh-autoreconf pkg-config

Compile:

./configure --without-gui --with-incompatible-bdb
make -j3

Curl RPC:

curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://rpcuser:rpcpassword@localhost:12345/
⚠️ **GitHub.com Fallback** ⚠️