01-08-2014, 02:52 AM
There's no real guide.
LuaRocks is somewhat like a packaging system (like apt-get or yum for the OS, but this is for Lua). You need to invoke it to install "rocks" (packages) and then you can use those rocks from any lua code.
For example:
Install the LFS rock:
Use the LFS in lua code:
Sorry I have only LFS example, that's the only one I've used so far. Here's a list of public rocks available:
http://luarocks.org/repositories/rocks/
LuaRocks is somewhat like a packaging system (like apt-get or yum for the OS, but this is for Lua). You need to invoke it to install "rocks" (packages) and then you can use those rocks from any lua code.
For example:
Install the LFS rock:
Code:
sudo luarocks install luafilesystem
local lfs = require ("lfs"); for FileName in lfs.dir(".") do -- use the LFS function dir ... end
Sorry I have only LFS example, that's the only one I've used so far. Here's a list of public rocks available:
http://luarocks.org/repositories/rocks/