ubuntu 17 編譯BTCoin

一. 安裝開發環境git

sudo apt-get update
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev

sudo apt-get install libboost-all-dev

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

sudo apt-get install libqrencode-dev

sudo apt-get install libminiupnpc-dev

sudo apt-get install git

二.下載源碼github

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

三.編譯oracle

./autogen.sh
./configure
make
make install # optional

四.問題ui

1. configure步驟提示 error: libevent not found.spa

sudo apt-get install libevent-dev

2. configure步驟提示 error: Found Berkeley DB other than 4.8, required for portable wallets (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet functionality)unix

wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/
cd build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local
sudo make install

 

網上的教程很亂,具體碰到問題,你們能夠參考doc文件目錄裏面的build-XX說明文件,很詳細。

code

相關文章
相關標籤/搜索