Failed to install golang.org/x/crypto/bcrypt
I am trying to install InfluxDB client. But the installation failed. This is my footprint:
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 didn't find the golang.org/x/crypto/bcrypt package in GOROOT and GOPATH .
When I try to install crypto / bcrypt I get 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 do I install golang.org/x/crypto/bcrypt?
My version of golang is go version go1.4.2 gccgo
+12
rusnasonov
source
to share
2 answers
I found a temporary solution.
The golang.org/x/crypto/bcrypt library has a mirror on github .
Create in a folder src/golang.org/x/
GOPATH
.
mkdir -p $GOPATH/src/golang.org/x/
Then clone the crypto from github.
cd $GOPATH/src/golang.org/x/
git clone git@github.com:golang/crypto.git
+13
rusnasonov
source
to share
I solved it with the command:
go get golang.org/x/crypto/bcrypt
0
Mayank gupta
source
to share