Last active
June 5, 2017 17:20
-
-
Save cwpearson/23bff2e3c8b0c8131fdefe21245fd52c to your computer and use it in GitHub Desktop.
Use binary go1.8.3 to boostrap gvm and associated go1.8.3 on ppc64le
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
VERSION=1.8.3 | |
OS=linux | |
ARCH=ppc64le | |
NAME=go$VERSION.${OS}-$ARCH.tar.gz | |
echo "==== Downloading go..." | |
curl -fsS https://storage.googleapis.com/golang/$NAME -o $NAME | |
echo "==== Extracting go..." | |
tar -C $HOME -xf $NAME | |
export PATH=$PATH:$HOME/go/bin | |
export GOROOT=$HOME/go | |
echo "==== Removing downloaded tar..." | |
rm $NAME | |
echo "==== Installing gvm..." | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
echo "==== Doing that ^ ..." | |
source $HOME/.gvm/scripts/gvm | |
#use GVM to install go properly | |
export GOROOT_BOOTSTRAP=$HOME/go | |
gvm install go1.8.3 | |
gvm use go1.8.3 --default | |
echo "==== Removing original go..." | |
rm -rf $HOME/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment