编译过程中确是libcurl的问题

在编译比特币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:32] Starting Stratum on stratum+tcp://stratum.f2pool.com:3333

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值