Failed to install golang.org/x/crypto/bcrypt

rusnasonov picture rusnasonov · Jul 10, 2015 · Viewed 13.9k times · Source

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

Answer

rusnasonov picture rusnasonov · Jul 10, 2015

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 [email protected]:golang/crypto.git