fukiki commented on pull request #3335:
URL: https://github.com/apache/apisix/pull/3335#issuecomment-766638650
About luajit path, I have a problem:
There are different LUA_PATH, LUA_CPATH between lua and luajit, which
`luarocks install` will be dependent on.
Lua: `/usr/share/lua/5.1`, `/usr/lib64/lua/5.1`
Luajit: `/usr/local/share/lua/5.1`, `/usr/local/lib64/lua/5.1`
If luarocks is 3.0, we can add `--lua-dir` to use luajit when `luarocks
install`.
If luarocks is not 3.0, using luajit will be a problem for `luarocks
install`, in order to use luajit's LUA_PATH and LUA_CPATH when run `luarocks
install`, I modify INST_LIBDIR and INST_LUADIR in `apisix-master-0.rockspec`.
But I think this solution is not very elegant, and I'm not familiar with
luarocks, haven't found a better solution.
@membphis @tokers Do you have any good suggestions?Looking forward to your
reply, thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]