【问题标题】:What is wrong with the setup of Hyperledger Fabric?Hyperledger Fabric 的设置有什么问题?
【发布时间】:2016-06-26 06:26:07
【问题描述】:

因为要安装新的清晰版Hyperledger Fabric,我删除了一个月前的旧Hyperledger文件,运行“vagrant destroy”。

我运行“vagrant up”,并且“vagrant ssh”成功。

当我运行“peer”时,我“make peer”成功,如果失败。 当我再次运行“make peer”和“peer”时,弹出错误如下:

vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$ make peer
make: Nothing to be done for `peer'.
vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$ peer
No command 'peer' found, did you mean:
 Command 'pee' from package 'moreutils' (universe)
 Command 'beer' from package 'gerstensaft' (universe)
 Command 'peel' from package 'ears' (universe)
 Command 'pear' from package 'php-pear' (main)
peer: command not found
vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$
vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$ cd peer
vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric/peer$ ls -l
total 60
drwxr-xr-x 1 vagrant vagrant   204 Jun 26 01:16 bin
-rw-r--r-- 1 vagrant vagrant 17342 Jun 25 14:18 core.yaml
-rw-r--r-- 1 vagrant vagrant 35971 Jun 25 14:18 main.go
-rw-r--r-- 1 vagrant vagrant  1137 Jun 23 08:46 main_test.go

【问题讨论】:

    标签: blockchain hyperledger hyperledger-fabric


    【解决方案1】:

    二进制 peer 文件的位置是 ./build/bin/ 文件夹。 对于您的配置,完整路径是“/opt/gopath/src/github.com/hyperledger/fabric/build/bin/”

    【讨论】:

      【解决方案2】:

      让我告诉你我上周从 gitHub 提取代码时观察到的一件事,[确切地说是星期四]。 Make 命令在“/opt/gopath/src/github.com/hyperledger/fabric/build/bin/”中创建了可执行文件。但我发现的一件漂亮的事情是,它已将相同的内容复制到“/hyperledger/build/bin”。 $PATH 变量现在也包含“/hyperledger/build/bin”。

      所以要回答您的问题,您有两个选择:-
      1. 一个保留您当前版本的代码并导航到 fabric 目录中的 bin 文件夹 并查看对等可执行文件是否存在。 ?如果是,则执行其余代码。
      2. 从 gitHub.com 中提取最新副本,并像往常一样从 fabric 目录中创建 peer。但是从任何地方执行对等。 :)

      【讨论】:

      • "它已将其复制到 '/hyperledger/build/bin'"。是,对的。但我在“hyperledger”文件夹下没有“build”。我在 ./build/bin/ 文件夹下找到了对等可执行文件,但它确实应该在 wiki 中引入。
      • 相同。没有 /build in /hyperledger/fabric。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多