nanopct4是一块arm板子, 4GB内存, rk3399芯片。安装了armbian。
首先git clone 源码
git clone https://github.com/litecoin-project/litecoin.git --depth 1
安装 依赖库
apt install autoconf pkg-config libtool libboost-all-dev libevent-dev qt5-default qttools5-dev-tools -y
在源码拉取完毕之后, 进入litecoin目录执行
cd litecoin
./autogen.sh
./configure
出现错误: configure: error: libdb_cxx headers missing, Litecoin Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)
这是因为需要安装 berkeleyDB 执行以下命令安装
chmod +x contrib/install_db4.sh
contrib/install_db4.sh /usr/local/lib/ --build=arm-linux
执行完成后会有以下输出:
db4 build complete.
When compiling litecoind, run `./configure` in the following way:
export BDB_PREFIX='/usr/local/lib/db4'
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" ...
按指示再次进行安装
export BDB_PREFIX='/usr/local/lib/db4'
./configure --with-gui BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
发现报错:
configure: error: No working boost sleep implementation found.
原因是没有安装boot库,那么在 (http://www.boost.org/users/history/version_1_66_0.html) 找到下载地址
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
tar -vxzf boost_1_66_0.tar.gz
cd boost_1_66_0/
./bootstrap.sh --prefix=/usr/local/
./bjam install
make -j5
make install