On 16 September 2011 21:05, Hisham <[email protected]> wrote: > > You should be able to configure your luarocks/config.lua file with > something like: > > rocks_trees = { > { > root = home.."/local", > bin_dir = home.."/local/arch/bin", > lib_dir = home.."/local/arch/lib", > lua_dir = home.."/local/share", > } > }
Thanks. Where is this documented? The page I quoted showed LUADIR as a part of the variables table, and as I said, that seems to be incorrect. > Unfortunately, LuaRocks does not export its arch variable to > config.lua. In any case, I don't know if its own syntax for arch (e.g. > "linux-x86") would be the same as the one you're using. I'm using the output of "uname -m", but then I only use Linux. I guess that `uname -s`-`uname -m` would be a more general solution, which would give Linux-i686 for your linux-x86, and would give Linux-x86_64 for my machine. > A workaround > would be to use separate config files (luarocks looks up the > $LUAROCKS_CONFIG environment variable; you could set that up > appropriately in your shell profile). I do this already. -- http://rrt.sc3d.org ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
