steps to install cryptogen tool for hyperledger fabric node setup?

自古美人都是妖i 提交于 2019-12-23 09:27:45

问题


I am a java developer and i have started learning hyperledger fabric . I am trying to do the setup for fabric node setup . I am not sure how to install cryptogen tool .

Please help me .


回答1:


For Linux users: The installation process of binaries tools for Hyperledger Fabric is captured in the download platform-specific binaries section.

You need to run:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release/scripts/bootstrap-1.0.0.sh | bash

It will download required files. Make sure you have all prerequisite installed and configured as well.

For MacOSX users: you can also use Homebrew to install the Hyperledger Fabric binaries:

brew tap hyperledger/fabric
brew install fabric-tools

In case you are working with source code base you can simply compile it with

make cryptogen

it will be available at ./build/bin/cryptogen folder




回答2:


This is a workaround and works only when you have Fabric installed into you Go workspace, but works like a charm.

Go to your Bash profile and add following line:

export PATH="$HOME/Go/src/github.com/hyperledger/fabric/.build/bin:$PATH"

In other words, you are linking the Fabric crypto tools that are located in the .build/bin/ that they are:

  • chaintool
  • configtxgen
  • cryptogen

after that you will be able to use these tools directly. But remember that they will won't work anymore if you will move o remove the hyperledger/fabric folder into you Go workspace.



来源:https://stackoverflow.com/questions/45498921/steps-to-install-cryptogen-tool-for-hyperledger-fabric-node-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!