blockbench icon indicating copy to clipboard operation
blockbench copied to clipboard

./driver -db fabric-v1.4 -ops 1000 -threads 4 -txrate 100 -fp stat.txt -endpoint localhost:7041,localhost:7051

Open hhp2020 opened this issue 5 years ago • 7 comments

Hi

I was wondering when I tried to run this command it generate no such a file ./driver

where should i run this command?

hhp2020 avatar Aug 25 '20 10:08 hhp2020

You have to compile the smallbank driver beforehand. In your console: cd ~/blockbench/src/macro/smallbank make

then navigate to the smallbank folder to execute your original command.

David-Sat avatar Sep 02 '20 07:09 David-Sat

I have make in this content, but I encouter a new question , such make -C api_adapters make[1]: Entering directory '/usr/local/blockbench/src/macro/smallbank/api_adapters' g++ -std=c++11 -c -g -Wall -I../ SmallBank.cc -o SmallBank.o SmallBank.cc:1:10: fatal error: restclient-cpp/restclient.h: No such file or directory #include <restclient-cpp/restclient.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. Makefile:10: recipe for target 'SmallBank.o' failed make[1]: *** [SmallBank.o] Error 1 make[1]: Leaving directory '/usr/local/blockbench/src/macro/smallbank/api_adapters' Makefile:13: recipe for target 'api_adapters' failed make: *** [api_adapters] Error 2

yogesa avatar Oct 06 '22 07:10 yogesa

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries

KunPengRen avatar Oct 06 '22 07:10 KunPengRen

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries I have patch restclient in this content , such as ~/Downloads/restclient-cpp, the restclient-cpp is that git clone from github project.

I run the code , the result is 
andres@ubuntu1:~/Downloads/restclient-cpp$ patch -p4 < /usr/local/blockbench/benchmark/parity/patch_restclient
(Stripping trailing CRs from patch; use --binary to disable.)
patching file source/restclient.cc
Reversed (or previously applied) patch detected!  Assume -R? [n] y 
Hunk #1 succeeded at 81 (offset 13 lines).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But I am not sure that it is correct !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am a beginner, If you give me any help,I would appreciate it very much。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then I make in /usr/local/blockbench/src/macro/kvstore , but but it still make fail~
the result is 
andres@ubuntu1:/usr/local/blockbench/src/macro/kvstore$ make
make -C core
make[1]: Entering directory '/usr/local/blockbench/src/macro/kvstore/core'
g++ -std=c++11 -c -g -Wall fabricv2_util.cc -o fabricv2_util.o
In file included from fabricv2_utils.h:10:0,
                 from fabricv2_util.cc:1:
bb_utils.h:13:10: fatal error: restclient-cpp/restclient.h: No such file or directory
 #include <restclient-cpp/restclient.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:9: recipe for target 'fabricv2_util.o' failed
make[1]: *** [fabricv2_util.o] Error 1
make[1]: Leaving directory '/usr/local/blockbench/src/macro/kvstore/core'
Makefile:12: recipe for target 'core' failed
make: *** [core] Error 2


yogesa avatar Oct 07 '22 03:10 yogesa

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries I have patch restclient in this content , such as ~/Downloads/restclient-cpp, the restclient-cpp is that git clone from github project.

I run the code , the result is 
andres@ubuntu1:~/Downloads/restclient-cpp$ patch -p4 < /usr/local/blockbench/benchmark/parity/patch_restclient
(Stripping trailing CRs from patch; use --binary to disable.)
patching file source/restclient.cc
Reversed (or previously applied) patch detected!  Assume -R? [n] y 
Hunk #1 succeeded at 81 (offset 13 lines).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But I am not sure that it is correct !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am a beginner, If you give me any help,I would appreciate it very much。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then I make in /usr/local/blockbench/src/macro/kvstore , but but it still make fail~
the result is 
andres@ubuntu1:/usr/local/blockbench/src/macro/kvstore$ make
make -C core
make[1]: Entering directory '/usr/local/blockbench/src/macro/kvstore/core'
g++ -std=c++11 -c -g -Wall fabricv2_util.cc -o fabricv2_util.o
In file included from fabricv2_utils.h:10:0,
                 from fabricv2_util.cc:1:
bb_utils.h:13:10: fatal error: restclient-cpp/restclient.h: No such file or directory
 #include <restclient-cpp/restclient.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:9: recipe for target 'fabricv2_util.o' failed
make[1]: *** [fabricv2_util.o] Error 1
make[1]: Leaving directory '/usr/local/blockbench/src/macro/kvstore/core'
Makefile:12: recipe for target 'core' failed
make: *** [core] Error 2

Thanks, I have solve it。 I find execute the patch -p4 < $BLOCK_BENCH_HOME/benchmark/parity/patch_restclient , then I need continue install restclient-cpp。Then I have fix the question by search, The above question is solve andres@ubuntu1:~/Downloads/restclient-cpp$ ./autogen.sh testing for glibtoolize ... using libtoolize ./autogen.sh: 12: ./autogen.sh: libtoolize: not found ./autogen.sh: 13: ./autogen.sh: aclocal: not found ./autogen.sh: 14: ./autogen.sh: autoconf: not found ./autogen.sh: 15: ./autogen.sh: autoheader: not found ./autogen.sh: 16: ./autogen.sh: automake: not found ./autogen.sh: 17: ./autogen.sh: ./configure: not found

, Thank you again。

yogesa avatar Oct 07 '22 03:10 yogesa

seems you lack of automake libtoolize

KunPengRen avatar Oct 07 '22 04:10 KunPengRen

seems you lack of automake libtoolize

Thank you , I have made success.

yogesa avatar Oct 07 '22 10:10 yogesa