问题描述
m试图使用 code>,所以我出口CGO_ENABLED = 0 ,
但它总是错误
system:os x 10.9.1
go版本:go1.2达尔文/ amd64
去env:
您是否安装了自制软件?试试这个:
$ b
brew install go --cross-compile-common --with-cgo --use-gcc
(来源:)
否则,只需安装pre-建立包。
I'm trying to install websocket using go get
However, given the x509: failed to load system roots and no roots provided error.
I was google it: cross-compilation requires disabling CGO, so i export CGO_ENABLED=0,
but it always error
system: os x 10.9.1
go version: go1.2 darwin/amd64
go env:
Did you install with homebrew? Try this:
brew install go --cross-compile-common --with-cgo --use-gcc
(source: https://groups.google.com/forum/#!topic/golang-nuts/gyL_jeOyxQA)
Otherwise, just install the pre-built package.
这篇关于去获得失败:x509:未能加载系统根目录并且没有提供根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!