https://github.com/lua-batteries/lua-batteries
Batteries included Lua and LuaJIT installation
https://github.com/lua-batteries/lua-batteries
lua luajit luarocks
Last synced: 4 months ago
JSON representation
Batteries included Lua and LuaJIT installation
- Host: GitHub
- URL: https://github.com/lua-batteries/lua-batteries
- Owner: lua-batteries
- License: mit
- Created: 2022-11-10T05:40:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T04:54:38.000Z (about 2 years ago)
- Last Synced: 2024-10-31T05:34:47.427Z (9 months ago)
- Topics: lua, luajit, luarocks
- Language: C
- Homepage:
- Size: 3.35 MB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
lua-batteries
`lua-batteries` is a batteries included lua installation more specifically it is set of meson build scripts to build [Lua](https://www.lua.org), [LuaJIT](https://luajit.org), [luarocks](https://github.com/luarocks/luarocks) and many useful libraries and modules. These scripts were initially based on franko's [lua](https://github.com/franko/lua) and [luajit](https://github.com/franko/luajit) meson build scripts but now they are extended to next level.
## Libraries And Modules
List of included libraries and modules provided by lua-batteries:
| Package | Build Version | Upstream Version |
|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|
| [argparse](https://github.com/luarocks/argparse) |  |  |
| [bit32](https://github.com/lunarmodules/lua-compat-5.3) |  |  |
| [cffi-lua](https://github.com/q66/cffi-lua) |  |  |
| [compat53](https://github.com/lunarmodules/lua-compat-5.3) |  |  |
| [date](https://github.com/Tieske/date) |  |  |
| [inpsect](https://github.com/kikito/inspect.lua) |  |  |
| [lanes](https://github.com/LuaLanes/lanes) |  |  |
| [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg.html) |  |  |
| [lrexlib-pcre2](https://github.com/rrthomas/lrexlib) |  |  |
| [lua-cjson](https://github.com/openresty/lua-cjson) |  |  |
| [luafilesystem](https://github.com/lunarmodules/luafilesystem) |  |  |
| [luaossl](https://github.com/wahern/luaossl) |  |  |
| [luaposix](https://github.com/luaposix/luaposix) |  |  |
| [lua-protobuf](https://github.com/starwing/lua-protobuf) |  |  |
| [luasec](https://github.com/brunoos/luasec) |  |  |
| [luasocket](https://github.com/lunarmodules/luasocket) |  |  |
| [lua-sdl2](https://github.com/Tangent128/luasdl2) |  |  |
| [lua-batteries/luastatic](https://github.com/lua-batteries/luastatic) |  |  |
| [luasql-sqlite3](https://github.com/lunarmodules/luasql) |  |  |
| [luautf8](https://github.com/starwing/luautf8) |  |  |
| [lua-zip](https://github.com/brimworks/lua-zip) |  |  |
| [lua-zlib](https://github.com/brimworks/lua-zlib) |  |  |
| [ltui](https://github.com/tboox/ltui) |  |  |
| [lui](https://github.com/zhaozg/lui) |  | |
| [luv](https://github.com/luvit/luv) |  |  |
| [lyaml](https://github.com/gvvaughan/lyaml) |  |  |
| [openssl](https://github.com/zhaozg/lua-openssl) |  |  |
| [penlight](https://github.com/lunarmodules/Penlight) |  |  |
| [toml](https://github.com/LebJe/toml.lua) |  |  |
| [uuid](https://github.com/Tieske/uuid) |  |  |
| [winapi](https://github.com/stevedonovan/winapi) |  |  |
| [xml2lua](https://github.com/manoelcampos/xml2lua) |  |  |## Installation
Visit [releases](https://github.com/lua-batteries/lua-batteries/releases) for prebuilt binaries. You just need to extract archive and add `bin` directory in your `PATH` environment variable. Also, see [INSTALL.md](https://github.com/lua-batteries/lua-batteries/blob/main/INSTALL.md) for installation instructions through meson.
These prebuilt binaries includes **Lua 5.4.6**, **LuaJIT 2.1.0-beta3** and **luarocks 3.9.2**
| Host | Architecture | Compiler | Download |
|---------|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| Linux | x86_64 | [GCC](https://gcc.gnu.org) | [.tar.xz](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-unknown-linux-gnu.tar.xz) |
| Windows | x86_64 | [MinGW-W64](https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.2-11.0.0-ucrt-r1/winlibs-x86_64-mcf-seh-gcc-13.1.0-mingw-w64ucrt-11.0.0-r1.7z) | [.7z](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-w64-mingw32.7z) |
| Windows | x86_64 | [MSVC](https://visualstudio.microsoft.com) | [.7z](https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-pc-windows-msvc.7z) |### On Linux (x86_64)
```bash
$ rm -rf /usr/local/lua-batteries-*
$ mkdir /usr/local/lua-batteries-0.5.15
$ curl -L https://github.com/lua-batteries/lua-batteries/releases/download/v0.5.15/lua-batteries-v0.5.15-x86_64-unknown-linux-gnu.tar.xz | tar xJC /usr/local/lua-batteries-0.5.15
$ printf "\nexport PATH=\"\$PATH:/usr/local/lua-batteries-0.5.15/bin\"\n" >> $HOME/.profile
$ source $HOME/.profile
$ lua -v
```