原文地址:https://rumorscity.com/2014/01/04/compile-and-install-cpuminer-on-linux-centos/
1.安装环境
yum install git automake gcc make curl-devel
2.从GITHUB克隆
git clone https://github.com/pooler/cpuminer
3.编译及安装
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
make install
检查是否安装成功,现在cpuminer应该安装在/usr/local/bin/ 目录下:
/usr/local/bin/minerd --version
结果应为:
cpuminer 2.3.2
libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
./minerd –url=stratum+tcp://coinotron.com:3334 –userpass=username:password
如果电脑是8线程的,那么输出结果应该像下面那样
[2013-12-18 13:01:24] thread 1: 363912 hashes, 6.07 khash/s
[2013-12-18 13:01:24] thread 6: 363612 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 4: 363504 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 7: 363432 hashes, 6.06 khash/s
[2013-12-18 13:01:24] thread 0: 365196 hashes, 6.09 khash/s
[2013-12-18 13:01:24] thread 2: 365580 hashes, 6.09 khash/s
[2013-12-18 13:01:24] thread 5: 364080 hashes, 6.06 khash/s
[2013-12-18 13:01:35] thread 3: 366072 hashes, 6.10 khash/s
[2013-12-18 12:34:03] accepted: 1/1 (100.00%), 48.55 khash/s (yay!!!)