Git Product home page Git Product logo

libuseful-lua's Introduction

libUseful-lua is a collection of lua modules that provide function bindings for the libUseful library, and also for a number of standard Posix functions. The aim is to provide a framework for linux system programming in lua. libUseful-lua provides methods and objects for file access, TCP/IP networking, terminal control, hash functions, syslog logging, mounting and unmounting filesystems, and much else.

libUseful-lua requires at least libUseful-3.2 to be installed on a system. You can get it from

https://github.com/ColumPaget/libUseful

Building the modules requires SWIG: http://www.swig.org. Once they're built you can install them on systems without SWIG, SWIG is only needed for compiling libUseful-lua

if libUseful and swig are installed then compiling libUseful-lua should be as simple as

./configure --with-lua-includes=/usr/include/lua --with-lua-lib=/usr/lib/ --with-lua-modules=/usr/lib/lua/5.3
make 
make install

The options to configure will need to be set as appropirate for your system. The configure script will try to guess the --with-lua-includes and --with-lua-lib values if they are not supplied, however the --with-lua-modules option is mandatory.

--with-lua-modules sets the directory that the compiled modules will be installed in. It should be one of the directories in lua's CPATH variable. You can view the value of this variable with:

lua -e "print(package.cpath)"

Basic documentation for the functions and objects in libUseful-lua is currently in the .i interface files for each module. Likely manpages or other better documentation will appear in time, but I wanted to get something out there ("Release early and release often", they said).

Some example programs can be found in the 'examples' directory. You need to install libUseful-lua before using these

This is the initial release, so expect some bugs and maybe some changes going forwards

libuseful-lua's People

Contributors

columpaget avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.