Go installation method and installation script

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

find the corresponding package from the Go download page of the Google site

This document is referenced from the official manual

Http://golang.org/doc/install#download

go reads environment variables at run time, such as unread to related environment variables, runs   by default;
For example ${goroot}

The. bashrc file under Home directory (~) finally added the following $ VI. BASHRC#GO installation location Export goroot= $HOME/go# similar workspace export gopath= $HOME/mygo# Add Bin directory to environment variable export path=${path}:${gopath}/bin: $GOROOT/bin# declaration 32-bit or 64-bit export goarch=amd64# declares the operating system type export goos= Linuxsource, make the above newly set environment effective $ source. BASHRC

Summarize

Actually install go1.1 or other versions, as long as

    1. Tell the system where go will be installed (this article is $HOME/go )
    2. Find the corresponding platform file, download the Go package
    3. Unzip & put it in there

Complete! Green Software!


Related Article

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.