Ubuntu12.10 Configuring the Go Language development environment

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Cut the crap and go straight to the subject.

System for Ubuntu12.10

1 Downloads Go's source package is now out of the go1.1beta2, but we're still using the go1.0.3 version.

Manual download:http://code.google.com/p/go/downloads/list

Command download:wget https://go.google.com/files/go.1.0.3.linux-amd64.tar.gz

2 The downloaded file is best placed under home because there is a Chinese path in the "Download"

3 Enter the command to extract the source package into the usr/local/ directory

sudo tar -zxvf go1.0.3.linux-amd64.tar.gz -C /usr/local/

4 wait for the decompression to complete after you open the Ubuntu configuration file to add the environment variables in

sudo gedit ~/.bashrc

After entering the password, open the bashrc file as shown in the following illustration

Path is the gopath of Go, and many files need to be placed in this folder after the go work path.
Click Close to save and then execute the following command to make the changes take effect.

source ~/.bashrc

5 in the terminal input Go Env View the installation situation appears the following information displays the installation success!

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.