Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hhp2020 opened this issue Aug 25, 2020 · 7 comments

Comments

@hhp2020
Copy link

hhp2020 commented Aug 25, 2020

Hi

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

where should i run this command?

@David-Sat
Copy link

David-Sat commented Sep 2, 2020

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.

@yogesa
Copy link

yogesa commented Oct 6, 2022

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

@KunPengRen
Copy link
Collaborator

KunPengRen commented Oct 6, 2022

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

@yogesa
Copy link

yogesa commented Oct 7, 2022

@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
Copy link

yogesa commented Oct 7, 2022

@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。

@KunPengRen
Copy link
Collaborator

seems you lack of automake libtoolize

@yogesa
Copy link

yogesa commented Oct 7, 2022

seems you lack of automake libtoolize

Thank you , I have made success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants