You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project currently installs the LuaJIT interpreter with only a standard search path for Lua modules, based on /usr/local. .travis/setenv_lua.sh then arranges for an updated LUA_PATH including the LuaRocks directories, but also ignores the LUA_HOME_DIR where LuaJIT actually got installed.
This isn't a problem for "normal" Lua[JIT] use, unless you start requiring the jit.* modules (directly or indirectly). For example, requesting a bytecode listing with luajit -bl mysource.lua causes an error luajit: unknown luaJIT command or jit.* modules not installed.
I've been experimenting a bit, and it seems there actually is a trivial solution to this.
Simply changing the line .travis/setup_lua.sh#L56 from make && make install PREFIX="$LUA_HOME_DIR"
to make PREFIX="$LUA_HOME_DIR" && make install PREFIX="$LUA_HOME_DIR"
will modify the (builtin) search path in a way that includes the LuaJIT destination directory, which I consider more suitable for the Travis CI installation. With this change applied, the jit.* modules are found without problems.
Regards, NiteHawk
The text was updated successfully, but these errors were encountered:
thanks , for nginx.lua, see the error message "unknown luaJIT command or jit.* modules not installed", I got the solution to the problem from your content
This project currently installs the LuaJIT interpreter with only a standard search path for Lua modules, based on
/usr/local
. .travis/setenv_lua.sh then arranges for an updatedLUA_PATH
including the LuaRocks directories, but also ignores theLUA_HOME_DIR
where LuaJIT actually got installed.This isn't a problem for "normal" Lua[JIT] use, unless you start requiring the jit.* modules (directly or indirectly). For example, requesting a bytecode listing with
luajit -bl mysource.lua
causes an errorluajit: unknown luaJIT command or jit.* modules not installed
.I've been experimenting a bit, and it seems there actually is a trivial solution to this.
Simply changing the line .travis/setup_lua.sh#L56 from
make && make install PREFIX="$LUA_HOME_DIR"
to
make PREFIX="$LUA_HOME_DIR" && make install PREFIX="$LUA_HOME_DIR"
will modify the (builtin) search path in a way that includes the LuaJIT destination directory, which I consider more suitable for the Travis CI installation. With this change applied, the
jit.*
modules are found without problems.Regards, NiteHawk
The text was updated successfully, but these errors were encountered: