Installing GO in rhel7

# download latest https://golang.org/dl/
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar xzvf go1.8.linux-amd64.tar.gz

# system wide install
sudo mv go /usr/local/

# add system wide path
sudo vi /etc/profile

# add this to bottom
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/usr/local/go/dev
export PATH=$PATH:$GOPATH/bin

# reload PATH
source /etc/profile

# test go
go version
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s