pc:virtual_currency:mine_bitzeny_on_freebsd_11

文書の過去の版を表示しています。


FreeBSD 11でBitZenyを採掘する

  • FreeBSD 11.1-RELEASE-p1
  • FreeBSD 11.1-RELEASE-p4

ビルドに必要なツール、ライブラリを入れる。(それなりに使ってるシステムなら多分既に入ってると思う。)

# pkg install llvm50
# pkg install devel/autotools
# pkg install ftp/curl

jassonは入れなくても大丈夫っぽいが、もしビルドエラーになるようなら入れる。

# pkg install devel/jansson

マイナーを取ってきて解凍。

$ fetch https://github.com/bitzeny/cpuminer/archive/master.zip
$ unzip master.zip

configureを生成。

$ cd cpuminer-master
$ ./autogen.sh

以下のようなエラー出るなら、autoreconf -fiを実行し、再度autogen.shしてみる。

configure.ac:120: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

普段使いの環境では一発で通ったのだが、インストールしたての11.1-RELEASEではエラーが起きたりで原因はよくわからない。

makeファイルを作る

./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" 

ビルド実行

make

成功すれば、カレントディレクトリに実行ファイルminerdが出来上がる。

以下のコマンドでBitZenyが採掘できる。

./minerd -a yescrypt -o プールのアドレス -u ユーザー名.ワーカー名 -p パスワード

MD poolでプールマイニングした時のログはこんな感じ。yay!!!と表示されてればひとまず成功。

[2017-11-20 16:33:01] Starting Stratum on stratum+tcp://zeny.mdpool.info:6969
[2017-11-20 16:33:01] Binding thread 0 to cpu 0
[2017-11-20 16:33:01] Binding thread 1 to cpu 1
[2017-11-20 16:33:01] Binding thread 2 to cpu 2
[2017-11-20 16:33:01] Binding thread 3 to cpu 3
[2017-11-20 16:33:01] Binding thread 4 to cpu 4
[2017-11-20 16:33:01] Binding thread 5 to cpu 5
[2017-11-20 16:33:01] Binding thread 6 to cpu 6
[2017-11-20 16:33:01] Binding thread 7 to cpu 7
[2017-11-20 16:33:01] Binding thread 8 to cpu 8
[2017-11-20 16:33:01] Binding thread 9 to cpu 9
[2017-11-20 16:33:01] Binding thread 10 to cpu 10
[2017-11-20 16:33:01] Binding thread 11 to cpu 11
[2017-11-20 16:33:01] Binding thread 12 to cpu 12
[2017-11-20 16:33:01] Binding thread 13 to cpu 13
[2017-11-20 16:33:01] Binding thread 14 to cpu 14
[2017-11-20 16:33:01] Binding thread 15 to cpu 15
[2017-11-20 16:33:01] Binding thread 16 to cpu 16
[2017-11-20 16:33:01] Binding thread 17 to cpu 17
[2017-11-20 16:33:01] Binding thread 18 to cpu 18
[2017-11-20 16:33:01] Binding thread 19 to cpu 19
[2017-11-20 16:33:01] Binding thread 20 to cpu 20
[2017-11-20 16:33:01] Binding thread 21 to cpu 21
[2017-11-20 16:33:01] Binding thread 22 to cpu 22
[2017-11-20 16:33:01] Binding thread 23 to cpu 23
[2017-11-20 16:33:01] 24 miner threads started, using 'yescrypt' algorithm.
[2017-11-20 16:33:01] Stratum requested work restart
[2017-11-20 16:33:05] thread 17: 772 hashes, 0.27 khash/s
[2017-11-20 16:33:05] accepted: 1/1 (100.00%), 0.27 khash/s (yay!!!)
[2017-11-20 16:33:06] thread 23: 1153 hashes, 0.27 khash/s
[2017-11-20 16:33:06] accepted: 2/2 (100.00%), 0.54 khash/s (yay!!!)
[2017-11-20 16:33:08] thread 14: 1624 hashes, 0.27 khash/s
[2017-11-20 16:33:08] accepted: 3/3 (100.00%), 0.81 khash/s (yay!!!)
[2017-11-20 16:33:09] thread 4: 2013 hashes, 0.27 khash/s
[2017-11-20 16:33:09] accepted: 4/4 (100.00%), 1.08 khash/s (yay!!!)
[2017-11-20 16:33:10] thread 5: 2320 hashes, 0.27 khash/s
[2017-11-20 16:33:10] accepted: 5/5 (100.00%), 1.35 khash/s (yay!!!)
[2017-11-20 16:33:11] thread 16: 2424 hashes, 0.27 khash/s
[2017-11-20 16:33:11] accepted: 6/6 (100.00%), 1.62 khash/s (yay!!!)
[2017-11-20 16:33:11] thread 15: 2397 hashes, 0.27 khash/s
[2017-11-20 16:33:11] accepted: 7/7 (100.00%), 1.89 khash/s (yay!!!)
[2017-11-20 16:33:12] thread 12: 2855 hashes, 0.27 khash/s
[2017-11-20 16:33:12] accepted: 8/8 (100.00%), 2.16 khash/s (yay!!!)
[2017-11-20 16:33:13] thread 9: 3004 hashes, 0.27 khash/s
[2017-11-20 16:33:13] accepted: 9/9 (100.00%), 2.43 khash/s (yay!!!)
[2017-11-20 16:33:13] thread 22: 3114 hashes, 0.27 khash/s
[2017-11-20 16:33:13] accepted: 10/10 (100.00%), 2.70 khash/s (yay!!!)
[2017-11-20 16:33:17] thread 13: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 10: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 8: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 6: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 2: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 21: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 20: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 0: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 1: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 3: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 18: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 11: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 7: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:17] thread 19: 4096 hashes, 0.27 khash/s
[2017-11-20 16:33:18] thread 16: 2041 hashes, 0.27 khash/s
[2017-11-20 16:33:18] accepted: 11/11 (100.00%), 6.49 khash/s (yay!!!)
[2017-11-20 16:33:20] thread 7: 829 hashes, 0.27 khash/s
[2017-11-20 16:33:20] accepted: 12/12 (100.00%), 6.49 khash/s (yay!!!)
...

採掘能力はと言うと、家の物理サーバ(Xeon E5-2648Lv3/1.8GHz/12C24T)で毎秒6.5kハッシュ、ABLENETのVPS V1プラン(Xeon E5-2640 v2/2.0GHz/仮想2コア)で0.1~0.36kH/sといったところ。

  • pc/virtual_currency/mine_bitzeny_on_freebsd_11.1512526781.txt.gz
  • 最終更新: 2017-12-06 11:19
  • by Decomo