Configure hyperledger fabric environment under macOS system
cURL
Mac comes with curl. If you need to download the latest version, you can follow the following command and add the path to the top of the system environment variable.
brew install curl
Docker & Docker Compose
Download address: https://store.docker.com/editions/community/docker-ce-desktop-mac
After downloading, you need to check the version. It is required that the docker version is not lower than 17.06.2-ce, and the docker compose version is not lower than 1.14. 0
docker --version
docker-compose --version
Go Programming Language
Download address: https://www.golangtc.com/download
Go
The project is downloaded to the directory by default /usr/local
. After completion, you need to add environment variables, open the configuration file vim .bash_profile
, and add the following code:
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
Node.js & NPM
Download address: https://nodejs.org/en/download/
requires Node.js
a version no lower than 8.9