lua-users home
lua-l archive

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


At 14:23 4/4/2006, Tomas wrote:
I already tried suggesting this
(http://lua-users.org/lists/lua-l/2006-02/msg00461.html).

  LUA_5_1_INIT
  LUA_5_1_PATH
  LUA_5_1_CPATH

        The ability to define these PATHs with a variable part would help:

LUA_PATH="/usr/local/share/lua/$VERSION_NUMBER/?.lua..."

        I think this approch is better than changing .c files don't you
think?

Let's say that you have two Lua versions instaled on the same system in different folders.

Both will look for LUA_PATH and LUA_CPATH. Where we are going to install modules for the two different versions? (assuming the modules are not compatible of course).

Since the contants of those enviroment variables can be very long I think that the "LUA_5_1_PATH" is a simple solution.

The solution that we were considering for another project is to dynamically set the environment variables during application initialization. The application will know which version is running so just configuring LUA_PATH will be enough. But this may not be a good solution for everyone.

Best,
scuri