On 28 June 2013 12:36, Eric Chiesse <[email protected]> wrote: > How can I tell LR that a rock is to be installed for lua5.2? > > For example I'd like to install LuaFileSystem and have it available for > lua5.2 but when i run "luarocks install luafilesystem" and try to " > require'lfs' " in source code, it works well for lua5.1 but crashes for > lua5.2. That can be because is built against lua5.1 dependencies.
Using a recent version of LuaRocks, just run it using lua 5.2. Try "lua5.2 luarocks install luafilesystem". Alternatively, you can configure LuaRocks for Lua 5.2 during installation by passing --lua-version=5.2 to the configure script. -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
