On 29 September 2014 00:54, Daurnimator <q...@daurnimator.com> wrote: > So, imagine the scenario that you have installed globally on a multi-user > system: > lua5.1, lua5.2, luajit 2.0, luarocks 2.0 > > How can a user bootstrap themselves with luarocks for 5.1 and 5.2?
Use the tarball and the configure script, install twice and pass the correct --lua-version flag each time. The `luarocks` script will be the one installed last, but you'll also have `luarocks-5.1` and `luarocks-5.2`, each using to a separate rocks tree, which will be at /usr/local/lib/luarocks/rocks-5.1 and /usr/local/lib/luarocks/rocks-5.2. > So: how can luarocks for 5.1 and 5.2 coexist? > And how can I bootstrap luarocks for 5.2 from a luarocks for 5.1 configured > installation? Since we can't really pass "options" when installing a rock, `luarocks install luarocks` can only upgrade its own installation, really (and a this point it only really works on Unix.) To install both versions cleanly, I'm afraid you'll have to use the tarball. -- Hisham ------------------------------------------------------------------------------ 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