1. 程式人生 > >ubuntu 17 編譯BTCoin

ubuntu 17 編譯BTCoin

tar autot req wall pda sse .gz pre -a

一. 安裝開發環境

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

二.下載源碼

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

三.編譯

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

四.問題

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

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)

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說明文件,很詳細。

ubuntu 17 編譯BTCoin