How to build the Go language development environment under Ubuntu _golang

Source: Internet
Author: User

The new version of Go has better performance, the Ubuntu software library only to turn over the old version, through the source installation go1.2

Specific steps:

1, to the official website download go1.1.2 tarball, I download to the TEM directory

2, open terminal cd/usr/local, TAR-ZXVF go1.1.2.linux-386.tar.gz

Unzip the source file to the/usr/local directory, and if you extract it to another directory, you need to set up your own goroot

3, install GCC tool, because golang some function is to use C to write

sudo apt-get install Bison gawk gcc Libc6-dev make

4, $ cd go/src,$./all.bash

Run bash script, if run normally will get your operating system and CPU information, automatically compile the installation

5, will export path= $PATH:/usr/local/go/bin Write $home/.profile

The final Test input go version will show go1.1.2 linux/386

Complete

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.