GithubHelp home page GithubHelp logo

isabella232 / aerospike-mod-lua Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aerospike/aerospike-mod-lua

0.0 0.0 0.0 2.09 MB

Lua Interface Module for Aerospike Server and C Client

Home Page: http://aerospike.com

C 86.25% Lua 6.22% Makefile 7.53%

aerospike-mod-lua's Introduction

aerospike-mod-lua

Aeospike Mod Lua provides support for executing Lua language functions using the Aerospike data types. This module is used by both the Aerospike Server and the Aerospike C Client as a git submodule.

Dependencies

Linux Dependencies

Building Aerospike Mod Lua requires the development resources for the Lua language version 5.1.4. The installation instructions for common Linux distributions are as follows:

Red Hat Dependencies

Red Hat Package Manager (RPM) based Linux Distributions (Red Hat, Fedora, CentOS, SUSE, etc.) require the following packages:

  • lua-devel - Development resources for the Lua language.

If yum is your package manager, then you should be able to run the following command:

$ sudo yum install lua-devel

Debian Dependencies

Debian based Linux Distributions (Debian, Ubuntu, etc.) require the following packages:

  • liblua5.1-dev - Development resources for the Lua language.

If apt-get is your package manager, then you should be able to run the following command:

$ sudo apt-get install liblua5.1-dev

Build

Build Linux and MacOS

To build the test app:

$ make test

To build a static archive libmod_lua.a:

$ make libmod_lua.a

To build a dynamic library libmod_lua.so:

$ make libmod_lua.so

Build MacOS XCode

  • Double click xcode/aerospike-mod-lua.xcworkspace
  • Click Product -> Build

Build Windows Visual Studio 2017 (or greater)

  • Double click vs/aerospike-mod-lua.sln
  • Click Build -> Build Solution

Install

All generated files are placed in ./target/{arch}, where:

  • {arch} is the target architecture, e.g., Linux-x86_64.
  • The lib subdirectory contains all libraries.
  • The bin subdirectory contains all executables.

libmod_lua.so

You will want to either:

  1. Move the libmod_lua.so to a location your program can access.
  2. Add the path to libmod_lua.so to your LD_LIBRARY_PATH.

Test

To test, you can run the following:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:target/Linux-x86_64/lib
$ target/Linux-x86_64/bin/test record test1.record a b c d

aerospike-mod-lua's People

Contributors

arrowplum avatar bbulkow avatar bhuvanramk avatar briannichols avatar bwhisler avatar citrusraj avatar cstivers78 avatar dwelch-spike avatar gayathrikaliyamoorthy avatar gooding470 avatar kportertx avatar ksedgwic avatar pratyyy avatar sumitjindal avatar sunanda avatar sunilvirus avatar wchu-citrusleaf avatar xorphox 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.