# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # yum install golang # vi /etc/profile export GOPATH=/home/你的GOPATH(工作目录) export PATH=$PATH:$GOPATH/bin # source /etc/profile # go env GOARCH="386" GOBIN="" GOEXE="" GOHOSTARCH="386" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/你的GOPATH(工作目录)" GORACE="" GOROOT="/usr/lib/golang" GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_386" GO15VENDOREXPERIMENT="" CC="gcc" GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1"
有疑问加站长微信联系(非本文作者)