Install Hyperledger Fabric Prerequisites on Ubuntu

Q

How to install Hyplerledger Fabric Prerequisites on Ubuntu?

✍: FYIcenter.com

A

You can follow this tutorial to install Hyplerledger Composer Prerequisites on Ubuntu:

1. Verify your Ubuntu version:

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

2. Install Curl:

$ sudo apt install curl

$ curl --version
curl 7.58.0 (x86_64-pc-linux-gnu) ...

3. Install Git client:

$ sudo apt install git

$ git --version
git version 2.17.1

4. Install Go:

$ sudo apt update
$ sudo curl -O https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz 
$ sudo tar -xvf go1.9.2.linux-amd64.tar.gz
$ sudo mv go /usr/local
$ echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
$ source ~/.profile

$ go version
go version go1.11.5 linux/amd64

5. Install Docker Engine - Follow instructions on provided at docs.docker.com/install/linux/docker-ce/ubuntu/. Then verify the version and make sure the Docker Engine is running:

$ docker --version
Docker version 18.09.2, build 6247962

$ ps -e | grep dockerd
17939 ?        00:39:58 dockerd

6. Install Docker Compose:

$ sudo apt install docker-compose

$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01

7. Install Python - Follow instructions given at: linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/. Then verify:

$ python --version 
Python 2.7.15rc1

8. Install Pip:

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

$ sudo python get-pip.py

$ pip --version 
pip 19.0.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

 

Verify Docker Engine on Ubuntu

Hyplerledger Fabric Environment Requirement

Hyplerledger Fabric Environment on Ubuntu

⇑⇑ Hyperledger Tutorials

2019-04-09, 310👍, 0💬