%3C%21-- Global site tag (gtag.js) - Google Analytics --%3E

Install on Ubuntu

We have found that installing Fabric and its dependencies in Ubuntu is not always that easy, so this guide will help you install it if you are using Ubuntu 18.04 or 16.

Step by step

Check you are up to date:

sudo apt-get update
sudo apt-get upgrade

Install all the dependencies:

sudo apt-get install curl git docker.io docker-compose golang python

Create a new user for the blockchain accesses: 

sudo useradd -m -d /home/blockchain blockchain

Start Docker

sudo usermod -a -G docker blockchain  
sudo systemctl start docker  
sudo systemctl enable docker

Install Node and npm (you will need 8.11.x)

sudo su blockchain 
cd
bash
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm install 8.11.4
# should output v8.11.4
node -v

Install Fabric

exit
exit
sudo curl -sSL https://goo.gl/6wtTN5 | sudo bash -s 1.4.0
# Change Back to Blockchain User
sudo su blockchain
cd
bash

Try your installation

npm i -g @worldsibu/hurley
npm i -g @worldsibu/convector-cli
hurl new

Special thanks to InstaMed for creating the guide that inspired this one: https://developers.instamed.com/healthcare-payments-blockchain/install-blockchain-on-linux/

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us