当执行go get命令安装fabric-ca时,我收到错误

时间:2018-03-08 09:23:34

标签: go github hyperledger-fabric hyperledger

执行时

go get -u github.com/hyperledger/fabric-ca/cmd/

来自fabric-ca guide,我收到以下错误:

# cd /home/pi/go/src/github.com/hyperledger/fabric-ca; git pull --ff-only


error: cannot open .git/FETCH_HEAD: Permission denied
    package github.com/hyperledger/fabric-ca/cmd: exit status 1`

我尝试了git cloning,它从fabric-ca存储库下载了所有内容,然后我尝试自己安装了fabric-server和client,如下所示:

sudo make fabric-ca-server

这也产生了以下错误:

Building fabric-ca-server in bin directory ...
/bin/sh: 1: go: not found
Makefile:91: recipe for target 'bin/fabric-ca-server' failed
make: *** [bin/fabric-ca-server] Error 127

1 个答案:

答案 0 :(得分:0)

您的GOPATH看起来设置为/home/pi/go,并且您似乎无法访问/home/pi/go/src/github.com/hyperledger/fabric-ca路径上的某个位置。

我要检查确保您运行go get的用户是否具有对/home/pi/go/src

的R / W访问权限