0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WSL上にBBc1をインストールしてみる

0
Posted at

目的

WSL(Ubuntu)環境にBBc1環境を構築する際の覚書。
Ubuntuをインストールした直後のまっさらな状態からインストールすることを前提。

構成

WSLとUbuntuで仮想環境を構築
Ubuntu環境上にBBc1環境を構築する

手順

BBc1のインストールガイドを参照して構築するが一部情報が古いので、下記の手順で構築する
BBc1_core_tutorial_installation_ja.md

Python3環境の構築

$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.6 python3.6-dev python3.6-venv

※python3.6-venvは過去の不具合で入らないみたいなので事前に3も入れておく

$ sudo apt-get install python3-venv

仮想環境上にlibbbcsig.soが作成されないので事前にgccをインストール

$ sudo apt install build-essential

Python仮想環境を作成

$ python3.6 -m venv bbcenv
$ source bbcenv/bin/activate
(.bbc1_venv)$ pip install -U pip

BBc1のインストール(ソースから)

$ git clone https://github.com/beyond-blockchain/bbc1.git
$ cd bbc1
$ sh prepare.sh

libbbcsig.soが作成されているか確認

$ ls libs/

libbbcsig.soが表示されていればOK

cryptographyのバージョンを2.2.1に上げる

$ pip install cryptography==2.2.1

必要なPythonパッケージのインストール

$pip install -r requirements.txt

起動確認

$ cd bbc1/core
$ python bbc_core.py --no_nodekey

2か月前くらいに書いた記事なので最新とは異なる可能性もあります。誤字・脱字等ありましたらご指摘ください。

参考サイト

Win10のBash on Windows をインストールする
bbc1インストール時のエラー対処法
WSL の Ubuntu の Python に pip がない

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?