Challenge while setting up Hyperledger Fabric 1.0 in Ubuntu 16.04

+1 vote

I'm following 2 links to setup Hyperledger Fabric 1.0 in my system.

The first link I am following is 

After following commands till 

cd $GOPATH/src/
vagrant up
vagrant ssh

I went on to follow where I used

cd $GOPATH/src/
make dist-clean all​

But it gave me the following error: /usr/bin/ld: cannot find -lrocksdb collect2: error: ld returned 1 exit status Makefile:137: recipe for target 'build/bin/peer' failed make: *** [build/bin/peer] Error 2

If you check the below screenshots, on the Left side my vagrant is running and the right side is my Hyperledger Fabric 1.0 Setup command make dist-clean all


To me this seems to be problem of rocksdb, how can I resolve this? 

Mar 27, 2018 in Blockchain by Gabriel
• 680 points

1 answer to this question.

0 votes
Best answer

The rocksdb error you are coming across would not be a problem now as Fabric no longer has a dependency on rocksdb and uses leveldb instead. It is entirely likely that because the vagrant environment gets little use of late, that it is not current.

I would like to reccomend that you start setting up the pre-requisites for fabric which is as below: 

  • Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
  • Docker Engine: Version 17.03 or higher
  • Docker-Compose: Version 1.8 or higher
  • Node: 8.9 or higher (note version 9 is not supported)
  • npm: v5.x
  • git: 2.9.x or higher
  • Python: 2.7.x
  • A code editor of your choice, we recommend VSCode.

 Once you have these minimum requirements, you can follow Installing Development Environment guide to set up fabric on your machine.

However, if you want to build from source, note that Vagrant is no longer needed. The build should be capable of running natively on most platforms (Mac, Windows and Ubuntu). Occasionally, it has been observed that a fresh build (make all) from scratch may occasionally fail. If so, try running (make all) again.

Hope this helps

answered Mar 27, 2018 by ned_crew
• 1,620 points

selected Aug 3, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

Why am I getting a grp timeout while setting up a Hyperledger development?

This error usually means that Validation Peer ...READ MORE

answered Jun 7, 2018 in Blockchain by Christine
• 15,810 points
0 votes
1 answer

Error while running make command using Fabric 1.0.6

It's a known issue in go 1.9.4: While ...READ MORE

answered Jun 26, 2018 in Blockchain by Perry
• 17,090 points
0 votes
1 answer

Hyperledger Fabric 1.0 how to maintain privacy from OSNs?

Yes, OSNs can see all the transaction ...READ MORE

answered Jul 2, 2018 in Blockchain by Omkar
• 69,000 points
0 votes
1 answer
+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,270 points
0 votes
1 answer
+1 vote
1 answer
+1 vote
1 answer

Hyperledger - How can I use transaction certificates to enforce privacy?

The transaction certificates don't actually address privacy ...READ MORE

answered Apr 17, 2018 in Blockchain by Perry
• 17,090 points