Lua

README for Lua
Login

README for Lua

Quick Start - TL;DR

"tl;dr" is an internet acronym that stands for "too long; didn't read".

./setup.sh
source souce.sh

Now you have a local installation of Lua and LuaRocks, with the wrappers ./mylua and ./myluarocks, respectively.
To remove the local installation:

./distclean.sh 

Lua

Links:

Install Lua locally:

./install-lua.sh
source source-lua.sh

LuaRocks - Lua package manager

Links:

Install LuaRocks locally:

./install-lua-rocks.sh
source source-lua-rocks.sh

LuaRocks - Customize paths

Extracts from Using LuaRocks to install packages in the current directory:

When executing require("hello.world") Lua must figure out where the file for this module is in order to load it.
Similar to the PATH environment variable, Lua uses two paths to find modules:

  1. package.path : Module written in Lua , i.e. a .lua file.
  2. package.cpath : Module compiled into native code, i.e. a .so or .dll file.

Create helper scripts for using custom paths with LuaRocks:

./install-lua-rocks-helper-scripts.sh

Socket programming

SNMP: LuaSnmp - Lua bindings for Net-SNMP

Debugging