What's the Lua's standard package management system and repository? Like brew
for Mac OS X, npm
for node.js
.
LuaRocks is the package manager for Lua modules.
To install Luarocks, you first need to install Lua. On Windows and Mac, you can download and install Lua from the website. Once Lua is installed, install Luarocks. If you're on Linux, the luarocks command is available in your distribution's repository.
Once LuaRocks is installed, the installation is simple: luarocks install desired-package . On Linux/Unix/Mac, this will install into /usr/local/{share,lib}/lua/5.1 , where the Lua interpreter looks for modules.
if you already have a Lua installation, the single binary package which you can use: get the latest windows-32. zip file here, unpack it and you'll have a luarocks.exe ready to use. Make sure the executable is available from your executable PATH so you can run luarocks from the command line the same way you run lua.
There is no standard Lua package management system, but you can try out the following:
LuaRocks - contains a rather large number of Lua modules distributed as rocks. Once LuaRocks is installed, the installation is simple: luarocks install desired-package
. On Linux/Unix/Mac, this will install into /usr/local/{share,lib}/lua/5.1
, where the Lua interpreter looks for modules.
LuaDist - designed to create an independent standalone directory with Lua and modules (a dist). Everything in LuaDist is CMake-based, which means that it can be easily compiled using any compiler/IDE supported by CMake. LuaDist also has an extensive repository which contains Lua modules and also many C dependencies/libraries, which allows to create a truly independent Lua "distribution". Installation is the same as with LuaRocks - luadist install desired-package
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With