在编译比特币cpu矿机的过程中,
参考此文章 https://bitcointalk.org/index.php?topic=55038.0
获取源码后configure,报错如下
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for getopt_long... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for gawk... (cached) gawk
checking for curl-config... no
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2
然而设备上已经装了curl 而且版本是7.4+ 然而发现usr/lib下确实没有libcurl
而后各种百度谷歌,找到解决办法。
apt install libcurl4-gnutls-dev 即可。再次运行configure不再报错,顺利编译。执行挖矿
./minerd -a scrypt -o stratum+tcp://stratum.f2pool.com:3333 --user=dilion
log如下
[2018-10-29 14:42: