Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

go

influxdb

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

like image 406
rusnasonov Avatar asked Jul 10 '15 06:07

rusnasonov


People also ask

How do I install Golang X crypto SSH?

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 .

What is cost in Bcrypt Golang?

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.


2 Answers

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
like image 182
rusnasonov Avatar answered Sep 18 '22 20:09

rusnasonov


I resolved it by using command:

go get golang.org/x/crypto/bcrypt

like image 23
Mayank Gupta Avatar answered Sep 18 '22 20:09

Mayank Gupta