Skip to content

Commit ebe2f6e

Browse files
authored
Update install-hyperledger-fabric-2-ubuntu-18.04.sh
1 parent 6203ded commit ebe2f6e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

script/install-hyperledger-fabric-2-ubuntu-18.04.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Install Hyperledger Fabric 2.0.0 on Ubuntu 18.04 Linux.
44
#
55
# Check how to use it at:
6-
# https://www.systutorials.com/how-to-install-go-1-13-x-on-ubuntu-18-04/
6+
# https://www.systutorials.com/how-to-install-hyperledger-fabric-2-0-in-ubuntu-18-04/
77
#
88
# Authors: Eric Ma (https://www.ericzma.com)
99
#
@@ -34,8 +34,11 @@ fi
3434
source /etc/profile.d/Z99-go-1.13.sh
3535
source ~/.bashrc
3636

37+
# set GOPATH explicitely
38+
export GOPATH=$(eval echo $(go env | grep ^GOPATH= | cut -d'=' -f2))
39+
3740
echo ""
38-
echo "Installa packages ..."
41+
echo "Install packages ..."
3942
sudo apt install git curl wget docker docker-compose nodejs npm
4043
sudo npm install [email protected] -g
4144
sudo usermod -aG docker $USER

0 commit comments

Comments
 (0)