lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


There is luaenv: https://github.com/cehoffman/luaenv .
I use it for some days, and it never fails me.

On Fri, Jan 15, 2016 at 4:58 PM Valerio Schiavoni <valerio.schiavoni@gmail.com> wrote:
I totally second this need. I've been looking for tools like RVM (rvm.io) for Lua for years. 



--
Valerio


On Fri, Jan 1, 2016 at 4:09 PM, Meer, Hans van der <H.vanderMeer@uva.nl> wrote:
I would like to switch from 5.2 to 5.3. 

However, if incompatibilities arise then a switch back to 5.2 should be easy. Something like LUA_VERSION=5.3 instead of LUA_VERSION=5.2 in the .bashrc file.

My question: if I do "make install" in the 5.3 codebase is this still doable? Or will there be confusion between the two versions, making a simple switch in this manner undoable?

By the way, in the .bashrc-file I have configured lua as follows:
LUA_VERSION=5.2
export LUA_VERSION
LUA_DIR=/usr/local
export LUA_DIR
LUA_INCL=$LUA_DIR/include
export LUA_INCL
LUA_SHAREDIR=$LUA_DIR/share/lua/$LUA_VERSION
export LUA_SHAREDIR
LUA_LIBDIR=$LUA_DIR/lib/lua/$LUA_VERSION
export LUA_LIBDIR
LUA_PATH="./?.lua;./?/?.lua;$LUA_SHAREDIR/?.lua;$LUA_SHAREDIR/?/?.lua"
export LUA_PATH
LUA_CPATH="./?.so;./?/?.so;$LUA_LIBDIR/?.so;$LUA_LIBDIR/?/?.so"
export LUA_CPATH

Hans van der Meer