Bitcoin 安装

(1)Bitcoin Core第三方依赖库说明:

基本的第三方依赖

  • libssl:      Crypto, Random Number Generation, Elliptic Curve Cryptography
  • libboost:  Utility, Library for threading, data structures, etc
  • libevent:  Networking, OS independent asynchronous networking

 

根据编译条件可选的第三方依赖

  • miniupnpc:    UPnP Support, Firewall-jumping support
  • libdb4.8:       Berkeley DB, Wallet storage (only needed when wallet enabled)
  • qt:                 GUI, GUI toolkit (only needed when GUI enabled)
  • protobuf:       Payments in GUI, Data interchange format used for payment protocol (only needed when GUI enabled)
  • libqrencode: QR codes in GUI, Optional for generating QR codes (only needed when GUI enabled)
  • univalue:      Utility, JSON parsing and encoding (bundled version will be used unless --with-system-univalue passed to configure)
  • libzmq3:       ZMQ notification, Optional, allows generating ZMQ notifications (requires ZMQ version >= 4.x)

 

(2)Ubuntu16.04上安装第三方库

安装libssl, libevent, libboost库等

    #apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils

    #apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev

 

通过添加仓库安装BerkeleyDB

扫描二维码关注公众号,回复: 2991727 查看本文章

    #apt-get install software-properties-common

    #add-apt-repository ppa:bitcoin/bitcoin

    #apt-get update

    #apt-get install libdb4.8-dev libdb4.8++-dev

   

安装UPnP库

    #apt-get install libminiupnpc-dev

   

安装ZMQ库

    #apt-get install libzmq3-dev

   

安装QT5库

    #apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler

   

安装二维码库

    #apt-get install libqrencode-dev

 

(3)编译安装Bitcoin Core

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

    #cd bitcoin

    #./autogen.sh

    #./configure

    #make

    #make install

 

(4)启动Bitcoin Core,  打开终端执行bitcoin-cli/bitcoin-qt

#bitcoind

猜你喜欢

转载自blog.csdn.net/softgmx/article/details/81349660