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
Download/Install The easiest way to install is to run go get -u golang.org/x/crypto/... . You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto .
Bcrypt uses a concept named cost which represents the number of hash iterations that bcrypt undertakes. Hashing time is calculated as 2 ^ cost and the higher the cost, the longer the hashing process takes.
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
I resolved it by using command:
go get golang.org/x/crypto/bcrypt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With