Am 29.09.2014 um 05:54 schröbte Daurnimator: > > You can get a local luarocks installation up by doing: > $ /usr/bin/luarocks --local install luarocks > This will give you a `luarocks` shell script at > `$HOME/.luarocks/bin/luarocks`.
I'm not sure installing LuaRocks as a rock is officially supported on Windows, because there are issues with removing/overwriting files still in use. This is why the LuaRocks modules are currently installed outside of the rocks tree, so you probably would end up with two sets of LuaRocks modules ... (And I think updating a combined LuaRocks installation via rock doesn't work on Unixes either, but it's been some time since I last checked). > > So: how can luarocks for 5.1 and 5.2 coexist? This is probably a good time to announce my LuaRocks4Windows[1] package which is a GUI installer for MinGW, Lua 5.1, Lua 5.2, and LuaRocks 2.2.0 configured for both Lua versions (I'll add Lua 5.3 once it's officially released; an additional LuaJIT variant is a bit tricky because it would use the same rocks tree as Lua 5.1). By modifying the build scripts you can create your own custom GUI installers which e.g. install precompiled bindings/libraries/header files, or LuaJIT instead of PUC-Rio Lua 5.1. > And how can I bootstrap luarocks for 5.2 from a luarocks for 5.1 configured > installation? LuaRocks can use versioned configuration files (`site_config_5_x.lua` and `config-5.x.lua`). You need those for each Lua version as well as versioned rocks trees (I'm not sure whether the default install script on Windows creates one of those), and separate batch files for running LuaRocks. Take a look at the templates subdirectory in the LuaRocks4Windows repository. > > Daurn. > Philipp [1]: https://github.com/siffiejoe/prg-lr4win/releases/tag/v2.2.0.1 ------------------------------------------------------------------------------ Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers