1. 下载依赖
yum install -y boost-devel qt-devel protobuf-devel qrencode-devel libevent-devel libtool openssl-devel
2.下载 bitcoin core / omni core(usdt 节点)
https://github.com/bitcoin/bitcoin.git
https://github.com/OmniLayer/omnicore.git
bitcoin 解压为 bitcoin-master
usdt 解压为 omnicore-master
3. 安装libdb
wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz'
tar -xzf db-5.1.29.NC.tar.gz
cd db-5.1.29.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/opt/bitcoin-master/db4/ (/opt/bitcoin-master 为2中解压的目录,usdt也要执行一次)
make install
4. 打开到bitcoin (/opt/bitcoin-master) (此时目录中有db4 这个文件夹,如果没有,倒回步骤3 中再执行一次)
./autogen.sh
./configure LDFLAGS="-L/opt/bitcoin-master/db4/lib/" CPPFLAGS="-I/opt/bitcoin-master/include/" --with-incompatible-bdb
make
make install
5.打开 /usr/local/bin
运行bitcoind