Install the Go Language Pack in the UbuntuLinux environment. 1. download the golinux development kit 2. decompress the package to the directory 3. set the environment variable exportGOROOT = xxxx/goexportGOOS = linuxexportGOARCH = 386 #(386 indicates that 32 is linux, 686 indicates 64-bit linux, you can view it using uname-a) exportPATH = $ PATH: $ GOROOT/bin4
Install the Go Language Pack in Ubuntu Linux.
1. Download go linux development kit
2. decompress the package to the directory.
3. Set Environment Variables
Export GOROOT = xxxx/go
Export GOOS = linux
Export GOARCH = 386
#(386 indicates that 32 is linux, and 686 indicates 64-bit linux. You can use uname-a to view it)
Export PATH = $ PATH: $ GOROOT/bin
4. Run
./Src/all. bash
5. Add Configuration
Export GOLINKTOOL = $ GOROOT/pkg/tool/linux_386
Export PATH = $ PATH: $ GOROOT/bin: $ GOLINKTOOL
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2