首页 文章

go get failed:x509:无法加载系统根目录并且没有提供根目录

提问于
浏览
0

go get code.google.com/p/go.net/websocket

我正在尝试使用 go get 安装websocket

但是,鉴于 x509: failed to load system roots and no roots provided 错误 .

我是google it: cross-compilation requires disabling CGO ,所以我 export CGO_ENABLED=0

但它总是错误的

system:os x 10.9.1

go version:go1.2 darwin / amd64

去环境:

GOARCH =“amd64”GOBIN =“”GOCHAR =“6”GOEXE =“”GOHOSTARCH =“amd64”GOHOSTOS =“darwin”GOOS =“darwin”GOPATH =“/ Users / xxx / gocode”GORACE =“”GOROOT = “/usr/local/Cellar/go/1.2/libexec”GOTOOLDIR =“/ usr / local / Cellar / go / 1.2 / libexec / pkg / tool / darwin_amd64”TERM =“dumb”CC =“clang”GOGCCFLAGS =“ - g -O2 -fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fno-common“CXX =”clang“CGO_ENABLED =”0“

1 回答

相关问题