Hyperledger Fabric: can't load package: package github.com/hyperledger/fabric/core/chaincode/shim:

0 votes

I am trying to install Hyperledger Fabric prerequisites. I have installed the go in usr/local/go and set the path. But when i run 

make cryptogen

I get this error:

can't load package: package github.com/hyperledger/fabric/core/chaincode/shim: cannot find package
"github.com/hyperledger/fabric/core/chaincode/shim" in any of:
/usr/local/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)
/usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH) find:
‘/usr/local/go/bin/src/github.com/hyperledger/fabric/core/chaincode/shim’: No such file or directory
Oct 30, 2018 in Blockchain by slayer
• 29,040 points
357 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can install various golang projects with the $GOPATH variable. e.g.

export GOPATH=/home/username/go
mkdir -p $GOPATH/src/github.com/hyperledger
cd $GOPATH/src/github.com/hyperledger
git clone -b master https://github.com/hyperledger/fabric-samples.git
cd fabric-samples

The fabric-samples source tree can then be accessed from:

$GOPATH/src/github.com/hyperledger/fabric
answered Oct 30, 2018 by Omkar
• 65,820 points

Related Questions In Blockchain

+16 votes
4 answers
+1 vote
2 answers
+1 vote
2 answers

How to return value from a chaincode in Hyperledger Fabric?

Hyperledger Fabric supports only 2 types of ...READ MORE

answered Jun 13, 2018 in Blockchain by Perry
• 16,450 points
591 views
+1 vote
2 answers

Where is custom chaincode path Hyperledger Fabric 1.0?

You have to have your chaincode at ...READ MORE

answered Jul 10, 2018 in Blockchain by slayer
• 29,040 points
625 views
0 votes
1 answer
+2 votes
4 answers
0 votes
1 answer

Hyperledger Fabric: cannot run chaincode from github on Ubuntu terminal

Like the error says: *SimpleChaincode does not implement ...READ MORE

answered Oct 31, 2018 in Blockchain by Omkar
• 65,820 points
47 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.