Giter Club home page Giter Club logo

Comments (9)

phucnguyenit avatar phucnguyenit commented on May 31, 2024 1

Thanks @herrBez . Got that by install restclient.cpp and libcurl to compile driver

from blockbench.

herrBez avatar herrBez commented on May 31, 2024 1

Hi, I'm not sure about what you ask (and I'm not sure if with the following procedure you will install more things than needed. After all I'm not the developer of this repo)

I report instruction for Ubuntu/Linux not Windows nor Mac:

You need essentially the libcurl library with the headers and restclient-cpp with both headers and binary. For the former you can try with the following command:

   sudo apt-get install libcurl4-openssl-dev

While for the latter. You need to download the latest release of rest-client https://github.com/mrtazz/restclient-cpp/archive/0.4.4.zip, unzip it and follow the instructions of the README:

  ./autogen.sh 
  ./configure
  make install

Obviously you need the automake tool (sudo apt-get install automake)

Now you have to go in the directory with the driver source code and execute make. Et voilà you have the binary.

from blockbench.

jshaw29 avatar jshaw29 commented on May 31, 2024 1

@starrycheng
Hi it seems that the gcc command that is not known is -fgnu-tm which is

When the option -fgnu-tm is specified, the compiler generates code for the Linux variant of Intel’s current Transactional Memory ABI specification document (Revision 1.1, May 6 2009)

Since you're using Mac OS this could be a problem

from blockbench.

herrBez avatar herrBez commented on May 31, 2024

Hi, as pointed out in the README.md you need for the compilation and execution of driver the restclient-cpp library.

from blockbench.

herrBez avatar herrBez commented on May 31, 2024

Did you succeed with the configuration of blockbench? (I'm stuck :/)

from blockbench.

phucnguyenit avatar phucnguyenit commented on May 31, 2024

@herrBez : Which problem did you see in your configuration? Let me know, hope to help you quickly..

from blockbench.

starrycheng avatar starrycheng commented on May 31, 2024

Hi! @herrBez May I ask what is the concrete command line of the compilation and execution of driver the restclient-cpp library to build the ./driver binary? Thank you!

from blockbench.

starrycheng avatar starrycheng commented on May 31, 2024

@herrBez Hi, thank you for your suggestion. My system is Mac OS and I believe I have install the libcurl and res-client successfully according to the install instructions customized for Mac. when I go to the directory of /blockbench/src/macro/kvstore(which is one of the driver source code directory?) when I execute make, I encounter the following errors:

bogon:kvstore starry$ make                                                                            │bogon:macro starry$ kvscore  -db parity -threads 1 -P workloads/workloada.spec -txrate 5 -endpoint lo
/Library/Developer/CommandLineTools/usr/bin/make -C core                                              │calhost:8545 -wl ycsb -wt 20
make[1]: Nothing to be done for `all'.                                                                │-bash: kvscore: command not found
/Library/Developer/CommandLineTools/usr/bin/make -C db                                                │bogon:macro starry$ kvstore  -db parity -threads 1 -P workloads/workloada.spec -txrate 5 -endpoint lo
g++ -std=c++11 -c -g -Wall -fgnu-tm -I../ db_factory.cc -o db_factory.o                               │calhost:8545 -wl ycsb -wt 20
clang: error: unknown argument: '-fgnu-tm'                                                            │-bash: kvstore: command not found
make[1]: *** [db_factory.o] Error 1                                                                   │bogon:macro starry$ make
make: *** [db] Error 2

Is the error related to gcc compiler? Or is the error that is caused by mistakenly intalled res-client and libcurl?

from blockbench.

starrycheng avatar starrycheng commented on May 31, 2024

@Bigboss88
Hi, I think I have fixed by removing the -fgnu-tm in the make file and it works well.

from blockbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.