オプション2(Macの場合)のguideに続いて、chaincode_example02をコンパイルしようとしています。コードをコンパイルする以外はすべての手順が完了しました。次のエラーがあります。チェーンコードをコンパイルできません
cd $GOPATH/src/github.com/chaincode_example02
go build
chaincode_example02.go:30:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of:
/usr/local/Cellar/go/1.7.1/libexec/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)
($GOPATH not set)
でコードをファブリックコードを持っていることを確認してくださいあなたの説明に基づいて – eugenn
利用可能である「chaincode_example02は」「$ GOPATH/SRC/github.com /」フォルダ内にあります。 "$ GOPATH/src/github.com/hyperledger/fabric/examples/chaincode/go/asset_management02"のコピーだけですか? –
これは私のために働いた、ありがとう! –