How to Compile Bitcoin Source Code in Ubuntu 16.04 LTS zz

2018年06月14日 00:49:10

阅读数：4

在Ubuntun 14.4编译成功

# Update & Upgrade the System

sudo apt-get updatesudo apt-get upgrade

# Install dependencies there might be more based on your system# However below instructions are for the fresh Ubuntu install/server# Please carefully watch the logs because if something could not be install# You have to make sure it is installed properly by trying the command or that particular# dependency again

# Compile Bitcoin with Berkley DB 4.8# -----------------------------------cd ~/bitcoin/./autogen.sh# below command ./configure may return with error for dependencies# you need to make sure that it returns with no error# If it does please install the dependencies and rerun the /autogen.sh command again and then below command again./configure LDFLAGS="-L/home/theusername/bitcoin/db4/lib/" CPPFLAGS="-I/home/theusername/bitcoin/db4/include/"

# below command may take 5-10 minutes based on your systemmake -s -j5

# If all went well you will be able to access the binary at below locationcd ~/bitcoin/./src/bitcoind./src/qt/bitcoin-qt./src/bitcoin-cli