GithubHelp home page GithubHelp logo

riack's Introduction

#Riack Is a C client library for Riak.

##Compilation ###Dependencies

####protobuf-c Pure C bindings for google protocol buffers. Download at http://code.google.com/p/protobuf-c/

to compile protobuf-c you first need to install Protocol Buffers find it here http://code.google.com/p/protobuf/

On linux and Mac just do a

./configure
make
sudo make install

On both protobuf libraries.

On Windows Protocol Buffers follow the vsprojects/readme.txt in the downloaded the package. protobuf-c I recommend using cmake however at the time of writing this there is a bug which will give you a compile error if this is still the case visit http://code.google.com/p/protobuf-c/issues/list to find a solution.

####cmake Riack uses cmake build system which means it can be compiled on most systems. Make sure you have installed cmake if not find it here http://www.cmake.org/ or if your fortunate enough to be an OS with a package manager just install it with that.

###Ready Get a prompt and move to Riack top folder and do

cmake src/

This will generate make files, and you can run a make afterwards, unless your on windows in which case I recommend generating a visual studio project this is done like this:

cmake src/ -G "Visual Studio 10"

Note on windows you might need to tell cmake where to find the Protobuf-C files You can do this by passing some options to cmake which is hard to remember ;) I recommend to just edit src\cmake\Modules\FindProtoBufC.cmake lines 19 & 20.

##Examples To se examples of this look in the examples directory.
Before the examples can run you must place the compiled library files in the precompiled folder (see the precompiled/README.md file for details).

##Tests To make all tests succeed you need a running riak server with eleveldb backend. If your server is running on localhost with port 8081 set as protocol buffer port, you can run it right away, if not you need to input the ip and port in src/CMakeLists.txt line 4 & 5 and rerun cmake
When ready you can simply do a make test. (on windows just choose the correct build target in Visual Studio)

##Riack++ I am in the process of making a C++ wrapper it can be found here https://github.com/TriKaspar/riack_cpp It does not require anything but riack and a C++ compiler.

##Disclamer This is a sparetime project, so if you so a silly bug don't blame my employer, instead make a pull request ;)

riack's People

Contributors

bachpedersen avatar horms avatar

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.