ubuntu下搭建bitcoin调试环境

1. linux环境下编译、安装:

1)sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3

2)sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev

3)sudo apt-get install software-properties-common

4)sudo add-apt-repository ppa:bitcoin/bitcoin

5) sudo apt-get update

6)sudo apt-get install libdb4.8-dev libdb4.8++-dev

7) sudo apt-get install libminiupnpc-dev

8)sudo apt-get install libzmq3-dev

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

10)sudo apt-get install libqrencode-dev

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

12)cd bitcoin/

13)./autogen.sh

14)如果重头开始make clean

15)./configure --enable-debug --with-boost=/root/opt/boost CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"

16) make -j 2

17)make install

2.  安装linux服务器安装Clion

参考https://www.jetbrains.com/help/clion/install-and-set-up-product.html

3.  Clion加载bitcoin代码

你可能感兴趣的:(ubuntu下搭建bitcoin调试环境)