【问题标题】:What is wrong about installation of fabric-chaintool?安装fabric-chaintool有什么问题?
【发布时间】:2016-06-29 04:17:43
【问题描述】:

我正在 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”目录下?

在此先感谢您的帮助。

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 调用更容易。

【问题讨论】:

    标签: macos hyperledger


    【解决方案1】:

    您遇到此问题是因为您的 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
    

    【讨论】:

      【解决方案2】:

      在你的命令前加上'sudo'

      sudo cp 目标/chaintool /usr/bin

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-25
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多