5

I want to install both Lua 5.2 and 5.1 on my Linux computer. Is this just a matter of installing each version with the usual make linux install or is there something else? In particular, I am worried about the header and library files, since those seem to go on directories that are not namespaced with the version number, such as /usr/local/include.

In addition to that, is it possible to set up Luarocks so that it can install both 5.1 and 5.2 libraries? I know that Luarocks namespaces things in a 5.2 or 5.1 directory, and setting LUA_PATH_5_X and LUA_CPATH_5_X variables should work for configuring Lua after that but I don't understand how Luarocks decides what version of Lua to compile the C libraries against.

4

2 に答える 2

1

名前空間を使用したいが作成したい場合は、それに応じて およびその他の変数をmake linux install編集Makefileおよび変更します。INSTALL_TOP

于 2013-01-13T17:32:36.000 に答える