Golang 1.5 Installation and configuration

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Installing 1.5.3

Download

wget https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz

Extract

Tar zxvf go1.5.3.linux-amd64.tar.gz


Move to/usr/local/go1.5

MV go/usr/local/go1.5


Configure the GO environment

Vi/etc/profile
#Go Configurationexport goroot=/usr/local/go1.5 This is your Go install directory Export GOARCH=AMD64 This is your processor type ... For example I386,amd64export Goos=linux This is your operating system type. Export Gopath=/root/workstation/go This is your Go project folder, if we use a compiled package, we do not need this export path= $GOROOT/bin: $PATH Your go Command folder, Please keep the default ...


Effective environment variables

Source/etc/profile

Run

Go version

You can see the go version is installed successfully

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.