项目作者: oploadk

项目描述 :
Build Lua and LuaRocks in a self-contained directory on Linux.
高级语言: Shell
项目地址: git://github.com/oploadk/localua.git
创建时间: 2016-02-17T20:15:47Z
项目社区:https://github.com/oploadk/localua

开源协议:MIT License

下载


localua.sh

localua.sh is a Bash script to download and install a self-contained Lua and
LuaRocks on Linux, macOS and MSYS2.

It supports Lua 5.1 to 5.4. It does not officially support other operating
systems or environments, and it does not support LuaJIT.

Run the script without arguments to see how to use it.

But I just want to type lua and luarocks!

Say you store your local Lua environment in .lua in your project, just add
.lua/bin at the beginning of your $PATH. This will only work from the root
directory of the project though… but you can also add ../.lua/bin etc if
you want!

MSYS2 dependencies

Before running the script, install base-devel, gcc and unzip.

Alternatives

If this does not fit your needs, check out:

Similar tools for other languages:

  • Copyright (c) Pierre Chapuis