Prerequisites for installing Hyperledger fabric

Source: Internet
Author: User
Tags curl versions docker compose docker toolbox hyperledger fabric

Installing Curl (Install curl)

If you do not have curl installed, download and install it.

Note: If it is windows, please look at the following Windows extras;


Docker and Docker Compose


Below you talk about installing Docker and Docker compose.

MAXOSX, *nix, or Windows 10 requires the installation of Docker V1.12 or a later version.

Older versions of Windows need to be installed first: Docker Toolbox before installing Docker V1.12 or later.

You can view your Docker version by entering the following command in your terminal: Docker--version

Note: When installing a Mac or Windows version of Docker or Docker Toolbox, Docker Compose will be installed, and if you have already installed Docker, you need to make sure that your Docker The version of compose is version 1.8 or higher. If not, we recommend installing the latest version of Docker.

You can run the Docker-compose--version command to view the version of your Docker compose.

Go programming language

Many components of Hyperledger Fabric are developed using the go language.

Since we are going to write a chaincode program for the go language, we are going to make sure our source code is placed in the directory $gopath the environment variable. 1th we are going to make sure that we have to install the Go Language programming environment and ensure that the $gopath variable is configured correctly.

If you run the Echo $GOPATH without any output, you need to install the Go language and add the following two lines to your ~/.BASHRC

Export Gopath= $HOME/go

Export path= $PATH; $GOPATH/bin

Note: $HOME is the installation directory for your go language.

node. JS Runtime and NPM (node. js Runtime and NPM)

If you need to develop an application for Hyperledger Fabric using the node. JS SDK, you will be using the 6.9.x version of node. js.

Note: The 7.x version of node. JS is not supported at this time.

node. js---version 6.9.x or higher.

Attention:

Installing node. JS installs NPM, but it is recommended that you update the default version to install NPM. You can upgrade the NPM tool with the following command:

NPM Install Npm@latest-g

Windows Extras

If you are developing on Windows, you may also need the following to provide a better choice of Windows tools for built-in programs:
git Bash
Note: In earlier versions of Windows (such as Windows 7), you would typically use it as part of installing Docker Toolbox.
However, experience has shown that this is a poor development environment with limited functionality. It's the right one.
Run a docker-based scenario, such as getting started, but you may not be able to find the appropriate make command.
Note: The curl command that comes with Git and Docker Toolbox is old and does not handle redirection correctly for getting started. Make sure you install and use a newer version from the Curl download page






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.