0

我正在 Macbook 上安装https://github.com/hyperledger/fabric-chaintool

在“make install”过程中弹出错误。

target/chaintool 是否在“/Users/Will/Documents/gopath/src/github.com/hyperledger/fabric/fabric-chaintool/target/base+system+user+dev/chaintool”目录下?

真的提前感谢帮助。</p>

Copying binary to target
cp target/chaintool /usr/bin
cp: /usr/bin/chaintool: Operation not permitted
make: *** [install] Error 1

当我测试链码(Golang 编码程序)时,我会使用 CLI。看来这个链工具可以帮助我们在 RESTful 服务上测试链代码。如果是这样,它将有助于使 web RESTful 调用更容易。

4

2 回答 2

0

使用“sudo”为您的命令添加前缀

sudo cp 目标/chaintool /usr/bin

于 2016-12-22T08:19:29.910 回答
0

您遇到此问题是因为您的 Mac 上启用了“系统完整性保护”。

此处描述了解决方案Operation Not Permitted when on root El capitan (rootless disabled)

作为一种解决方法,您可以更新Makefile文件并将chaintool复制到另一个文件夹中,或者使用以下方法禁用“系统完整性保护”:

reboot with CMD+R, open the terminal and run "csrutil disable"
reboot 
...
make install
...
reboot with CMD+R again, open the terminal and run  "csrutil enable"
reboot
于 2016-06-29T07:05:44.127 回答