Open hhp2020 opened 4 years ago
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.
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
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries
@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 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。
seems you lack of automake libtoolize
seems you lack of automake libtoolize
Thank you , I have made success.
Hi
I was wondering when I tried to run this command it generate no such a file ./driver
where should i run this command?