Compiling Bitcoin in CENTOS7 environment

Source: Internet
Author: User
Tags git clone

The compilation environment is to install CENTOS7 mirrors in Vmware12, choose to create a virtual machine before adding a mirror, and you need to check the necessary development environment and tool options when adding mirrors.

1. Download Bitcoin source

git clone https://github.com/bitcoin/bitcoin.git

The Official document HTTPS://GITHUB.COM/BITCOIN/BITCOIN/BLOB/MASTER/DOC/BUILD-UNIX.MD has detailed compilation and dependency instructions

2. Obtaining dependent dependencies


According to the official documentation above, only the necessary dependencies need to be processed, but the lack of three GUI dependencies in the red box results in a lack of bitcoin-qt after compilation.

Install Libtool, libboost, Libevent, QT, Protobuf, Libqrencode, Libssl

Yum install-y boost-devel qt-devel protobuf-devel qrencode-devel libevent-devel libtool openssl-devel

Install LIBDB

wget ' http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz '

Echo ' 08238e59736d1aacdd47cfb8e68684c695516c37f4fbe1b8267dde58dc3a576c db-5.1.29.nc.tar.gz ' | Sha256sum-c

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=/usr/local

Make install

3. Compile Bitcoin

./autogen.sh

Because the previous LIBDB is installed with version 5.1,/configure add--with-incompatible-bdb ignore libdb version differences

./configure--WITH-INCOMPATIBLE-BDB

Make

Make install# Optional

After compiling the installation, in/usr/local/bin, there are compiled binary modules bitcoin-cli bitcoind bitcoin-qt bitcoin-tx






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.