Date | Module | Description | Version |
---|---|---|---|
2018-01-29 | dromozoa | dromozoa-bundle: dromozoa-utf8~1.8-103 : Lua 5.3 compatible pure-Lua UTF-8 implementation + dromozoa-xml~1.5-103 : XML parser and toolkit + dromozoa-image~1.0-103 : Portable toolkit for m... | 0.36 |
2018-01-28 | dromozoa | dromozoa-bundle: dromozoa-utf8~1.8-103 : Lua 5.3 compatible pure-Lua UTF-8 implementation + dromozoa-xml~1.5-103 : XML parser and toolkit + dromozoa-image~1.0-103 : Portable toolkit for m... | 0.35 |
2018-01-28 | LIVR | lua-livr : Lightweight validator supporting Language Independent Validation Rules Specification (LIVR) | 0.2.0-103 |
2018-01-26 | rucciva | json-logic-lua : json-logic lua port | 0.0.3-103 |
2018-01-26 | dromozoa | dromozoa-bundle: dromozoa-utf8~1.8-103 : Lua 5.3 compatible pure-Lua UTF-8 implementation + dromozoa-xml~1.5-103 : XML parser and toolkit + dromozoa-image~1.0-103 : Portable toolkit for m... | 0.34 |
2018-01-24 | rucciva | json-logic-lua : json-logic lua port | 0.0.2-103 |
2018-01-24 | auth0-nginx | auth0-nginx : An Auth0 + nginx integration | 1.5.0-3 |
2018-01-24 | dromozoa | dromozoa-bundle: dromozoa-utf8~1.8-103 : Lua 5.3 compatible pure-Lua UTF-8 implementation + dromozoa-xml~1.5-103 : XML parser and toolkit + dromozoa-image~1.0-103 : Portable toolkit for m... | 0.33 |
2018-01-23 | dromozoa | dromozoa-bundle: dromozoa-utf8~1.8-103 : Lua 5.3 compatible pure-Lua UTF-8 implementation + dromozoa-xml~1.5-103 : XML parser and toolkit + dromozoa-image~1.0-103 : Portable toolkit for m... | 0.32 |
2018-01-21 | htmlEntities | html-entities : Module for lua, decoding html entities :) | 1.2.0-3 |
Unzip the downloaded file into an arbitrary folder. This will create a single sub-folder named ulua
which contains the ULua distribution:
ulua
├── lua.cmd # LuaJIT executable for Windows.
├── lua # LuaJIT executable for OSX and Linux.
├── host
│ ├── config.lua # Global configuration (see PKG).
│ ├── init # Initialization scripts folder.
│ ├── tmp # Temporary files folder.
│ └── pkg # Downloaded packages cache folder.
├── bin
│ ├── upkg.cmd # Package manager executable for Windows.
│ ├── upkg # Package manager executable for OSX and Linux.
│ └── ... # Other executables depending on installed packages.
├── pkg # Package manager package.
└── ... # Other installed packages.
The lua
executable starts LuaJIT, the Lua manual and the LuaJIT manual document its usage:
# On Windows:
cd folder_containing_ulua/ulua
lua [options] [script [args]]
# On OSX and Linux:
cd folder_containing_ulua/ulua
./lua [options] [script [args]]
By default LuaJIT runs in 32-bit mode, to run it in 64-bit mode set the environment variable BIT=64
:
set BIT=64 # On Windows.
export BIT=64 # On OSX and Linux.
On Linux, if LuaJIT 32-bit is executed on a distribution lacking the 32-bit C runtime, this will result in a meaningless error such as luajit: command not found
. Either launch LuaJIT in 64-bit mode or install the required Linux libraries.
The upkg
executable provides a convenient way of managing ULua:
# On Windows:
cd folder_containing_ulua/ulua/bin
upkg available # List all available packages.
upkg add socket # Download and install the socket package (LuaSocket library).
upkg add pl # Download and install the pl package (PenLight library).
upkg update # Update all packages to the latest version.
# On OSX and Linux:
cd folder_containing_ulua/ulua/bin
./upkg available # List all available packages.
./upkg add socket # Download and install the socket package (LuaSocket library).
./upkg add pl # Download and install the pl package (PenLight library).
./upkg update # Update all packages to the latest version.
ULua features LuaRocks integration: new and updated rocks are automatically tracked, compiled and made available in ULua. More than 300 of such packages are currently available for installation, see LuaRocks Modules.
ULua also features a number of Native packages, i.e. packages that are developed directly for ULua according to its package manager specifications.