dsf487787
2015-07-10 06:46
采纳率: 100%
浏览 258
已采纳

无法安装golang.org/x/crypto/bcrypt

I trying install InfluxDB client. But installation failed. This is my trace:

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

I did not find package golang.org/x/crypto/bcrypt into GOROOT and GOPATH.

When I trying install crypto/bcrypt I have this error:

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

How I can install golang.org/x/crypto/bcrypt?

My golang version is go version go1.4.2 gccgo

图片转代码服务由CSDN问答提供 功能建议

我尝试安装 InfluxDB 客户端。 但是安装失败。 这是我的踪迹:

 去获取-u -v -x github.com/influxdb/influxdb/client
github.com/influxdb/influxdb(下载)
。  .. 
git remote -v 
获取https://golang.org/x/crypto/bcrypt?go-get=1
[1] 6625分段错误(核心已转储),请获取-u -v -x github。  com / influxdb / influxdb / client 
   
 
 

我没有在 GOROOT中找到软件包 golang.org/x/crypto/bcrypt GOPATH

当我尝试安装 crypto / bcrypt 时,出现此错误:

  go get -u -v golang.org/x/crypto/bcrypt
获取https://golang.org/x/crypto/bcrypt?go-get=1
[1] 7667 分段错误(核心已转储)转到-u -v golang.org/x/crypto/bcrypt
  
 
 

如何安装 golang.org/x / crypto / bcrypt

我的golang版本是 go版本go1.4.2 gccgo

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • douguachan2879 2015-07-10 09:32
    已采纳

    I found temporary solution.

    Library golang.org/x/crypto/bcrypt has mirror on github.

    Create folder src/golang.org/x/ into you GOPATH.

    mkdir -p $GOPATH/src/golang.org/x/
    

    Then clone crypto from github.

    cd $GOPATH/src/golang.org/x/
    git clone git@github.com:golang/crypto.git
    
    点赞 打赏 评论
  • duanlie7962 2019-08-22 20:50

    I resolved it by using command:

    go get golang.org/x/crypto/bcrypt

    点赞 打赏 评论

相关推荐 更多相似问题