How to install cpumimer on FreeBSD

(1)安装jwasm、curl、git:
#cd /usr/ports/devel/jwasm

#make install clean

#cd /usr/ports/ftp/curl

#make install

#cd /usr/ports/devel/git

#mail install clean

(2)下载cpuminer.tar.gz 官网下载后你要用git命令:
git clone git://github.com/jgarzik/cpuminer.git
所以推荐本站提供的下载地址:http://cur.lv/12f65
#tar -zxvpf cpuminer.tar.gz
#rm -rf cpuminer.tar.gz
#cd cpuminer
#vi Makefile.in
Find the follwing row:
DEFAULT_INCLUDES = -I.@am__isrc@
And change it to:
DEFAULT_INCLUDES = -I.@am__isrc@ -I/usr/local/include
:wq!
(3)下载swap头文件到cpuminer目录下,下载地址:http://cur.lv/12f66
(4)开始编译:
#CFLAGS=”-O3 -Wall -msse2″ ./configure
#make
#make install
(4)测试:
#minerd -a scrypt -o http://pool.yacointalk.com:8336 -u Y2czA1EDJogEXah43mrgdRfY4PLsj3yBq6
若出现一大堆以下信息就表示成功了:
LONGPOLL detected new block
thread 1: 32160 hashes, 7.05 khash/s
thread 0: 32784 hashes, 7.19 khash/s
OK,IT服务实验室在freebsd系统下测试通过!

原文链接:,转发请注明来源!

发表评论