1. Download the go1.8.linux-amd64.tar.gz package and put it in the/usr/local/directory
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/8E/B9/wKiom1jKKvnyfc-JAACzFCLUS2U005.jpg "title=" 1.jpg "alt=" Wkiom1jkkvnyfc-jaaczfclus2u005.jpg "/>
2, go language part of the function is developed in C language, so install go before need to install Gcc,make and other dependencies, Ubuntu under the installation command as follows: Apt-get Install bison ed gawk gcc Libc6-dev make
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/8E/B7/wKioL1jKK0fwn7PDAAE_dvPLuQw298.jpg "title=" 2.jpg "alt=" Wkiol1jkk0fwn7pdaae_dvpluqw298.jpg "/>
3, unpack the package TAR-ZXVF go1.8.linux-amd64.tar.gz
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/8E/B7/wKioL1jKK3qAePzhAAFi2FBOflE498.jpg "title=" 3.jpg "alt=" Wkiol1jkk3qaepzhaafi2fbofle498.jpg "/>
4. Configure environment variable/etc/profile restart
Add Export Goroot=/usr/local/go
Export Gobin=/usr/local/go/bin
Export path= $PATH: $GOBIN
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/8E/B7/wKioL1jKLA_gGrCKAABN2ci4cPg276.jpg "title=" 1.jpg "alt=" Wkiol1jkla_ggrckaabn2ci4cpg276.jpg "/>
5. Use the Go version and go ENV commands to see if the go is properly installed
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/8E/BA/wKiom1jKLPDBFlCKAAI6blcEJGY298.jpg "style=" float : none; "title=" 4.jpg "alt=" Wkiom1jklpdbflckaai6blcejgy298.jpg "/>
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/8E/B7/wKioL1jKLPDAajlWAAC8_p-hZ4A257.jpg "style=" float : none; "Title=" 1489644141 (1). jpg "alt=" wkiol1jklpdaajlwaac8_p-hz4a257.jpg "/>
This article from "Dream or want to have" blog, reprint please contact the author!
ubuntu14.04 Install Go