Failed to install golang.org/x/crypto/bcrypt
我尝试安装InfluxDB客户端。 但是安装失败。 这是我的踪迹:
1 2 3 4 5 6 | go get -u -v -x github.com/influxdb/influxdb/client github.com/influxdb/influxdb (download) ... git remote -v Fetching https://golang.org/x/crypto/bcrypt?go-get=1 [1] 6625 segmentation fault (core dumped) go get -u -v -x github.com/influxdb/influxdb/client |
我没有找到将golang.org/x/crypto/bcrypt打包到GOROOT和GOPATH中。
当我尝试安装crypto / bcrypt时,出现以下错误:
1 2 3 | go get -u -v golang.org/x/crypto/bcrypt Fetching https://golang.org/x/crypto/bcrypt?go-get=1 [1] 7667 segmentation fault (core dumped) go get -u -v golang.org/x/crypto/bcrypt |
如何安装golang.org/x/crypto/bcrypt?
我的golang版本是go版本go1.4.2 gccgo
我找到了临时解决方案。
库golang.org/x/crypto/bcrypt在github上具有镜像。
在您的
1 | mkdir -p $GOPATH/src/golang.org/x/ |
然后从github克隆加密货币。
1 2 | cd $GOPATH/src/golang.org/x/ git clone [email protected]:golang/crypto.git |
我通过使用命令解决了它: