Building Golang development environment under Deepin

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

First download Golang package, download address: Http://pan.baidu.com/s/1hq1mrDM
Go to the Go folder and enter the corresponding version number, If your system is 32-bit is the go1.4.2.linux-386.tar.gz,64 bit is go1.4.2.linux-amd64.tar.gz, downloaded well after the unzip get go folder, we use the command to move to the system directory: sudo mv go/ usr/local/Enter the administrator password, nothing is prompted to succeed, then modify the profile file, the command is sudo gedit/etc/profile, and then add the following code at the end:

export GOROOT=/usr/local/goexport GOARCH=amd64export GOOS=linuxexport GOPATH=/home/gopathexport GOBIN=$GOROOT/binexport PATH=$GOPATH/bin:$GOROOT/bin:$PATH

Then log off and re-login, log out and enter go in the terminal if there is a lot of English is successful.

By:rekols on 2015-04-26 12:20:21

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.