CentOs6.x下Golang环境配置

来源:互联网 时间:1970-01-01

# 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 envGOARCH="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"



相关阅读:
Top