Configure Blockchain on Windows
Configuring Windows for Hyperledger
Updated: 03 September 2023
Script
Before running the below script, ensure that you are in Administrator Powershell and that your Execution Policy is set to Remote Signed, if not then first run the following command
1Set-ExecutionPolicy RemoteSigned
Then run the script below
1cd ~2choco install python2 docker-desktop docker-compose golang nodejs git -y3npm install --global windows-build-tools4npm install --global grpc5mkdir .\go\src\github.com\hyperledger6cd go\src\github.com\hyperledger7git clone https://github.com/hyperledger/fabric.git
This will install the necessary prerequisites and should also set up the environment variables as well as the Go Workspace, but you may need to verify that the below steps were completed correctly
(Don’t know how accurate this script is as it may not necessarily work, but the instructions are as follows)
Received Instructions
Install Git for Windows x64 to include Uname command
Extract binaries + add to Env Variables
https://store.docker.com/editions/community/docker-ce-desktop-windows
Install Windows Xxtras
Node JS - https://nodejs.org/download/release/v8.9.4/ https://hyperledger-fabric.readthedocs.io/en/release-1.3/prereqs.html#id1
1npm install --global windows-build-tools2npm install --global grpc
Install Go
- Set Env Variables, PATH, GOPATH
- Create Workspace
(Not sure if this will work on Powershell/how it would be done correctly)
1export GOPATH=$HOME/go2export PATH=$PATH:$GOPATH/bin
Install Python
https://www.python.org/downloads/release/python-2715/
Set up Docker Shared Drives
https://docs.docker.com/docker-for-windows/#shared-drives
- 1SET Env PATH var:
D:\Development\hyperledger\fabric-samples\bin
- NEW ENV VAR
1compose_convert_windows_paths = 12MSYS_NO_PATHCONV=13clone git clone https://github.com/hyperledger/fabric.git4to $GOPATH-> src/hyperledger