01-08-2014, 04:20 AM
(01-08-2014, 02:52 AM)xoft Wrote: 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: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/
Okey.
But when i will install MySQL in LuaRocks it don't work:
C:\>luarocks install LuaSQL-MySQL MYSQL_DIR=C:\Program Files (x86)\MySQL
Error: No results matching query were found.
I'm programming in windows.