Hi, I just committed some general improvements for Lua 5.1 and 5.2 coexistance:
* Add --versioned-rocks-dir option to Unix installer, which makes it use paths such as /lib/luarocks/rocks-5.X, and /etc/luarocks/config-5.X.lua (where X is 1 or 2). * Make configure script on Unix autodetect the presence of previous LuaRocks installations and adapt accordingly to avoid conflicts. * Support luarocks.site_config_5_X for users who wish to run two versions from the same source tree (may be useful for LR development). * Try to load config-5.X.lua from home directory before trying config.lua. I tried to make it as transparent as possible for users. (Thanks Gary and Steve for the feedback, but I decided to go with a bit more engineering to make have newcomers need less configuration. It's all about lowering the barrier of entry.) With the current setup, this should do the right thing: ./configure --with-lua=/your/lua/5.1/prefix/ make; make install # installs LuaRocks for Lua 5.1 ./configure --with-lua=/your/lua/5.2/prefix/ make; make install # installs LuaRocks for Lua 5.2 luarocks-5.1 install stdlib # builds stdlib for Lua 5.1 luarocks-5.2 install stdlib # builds stdlib for Lua 5.2 # luarocks is a symlink for the one installed last. If anyone would like to give the current code at git a spin, it would be great. Thijs Schreijer also made major improvements to the Windows side of things, and Fabio helped as well. So, I hope to get a release candidate for 2.0.13 out this weekend, but it would be nice to have someone give the code at git a run before I pack the rc. -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers