openresty / docker-openresty

Docker tooling for OpenResty
https://hub.docker.com/r/openresty/openresty
BSD 2-Clause "Simplified" License
935 stars 525 forks source link

luajit: unknown luaJIT command or jit.* modules not installed #249

Closed yuguangye closed 4 months ago

yuguangye commented 4 months ago

When I used the latest openresty/openresty:1.25.3.1-2-focal image, I found that we could not use the luajit -bl command, it would output the following error,

image

The reason is that after we upgrade, there is a problem with the directory in the output LUA_PATH environment variable. The jit directory in openresty 1.25.3.1 is /usr/local/openresty/luajit/share/luajit-2.1

The jit directory in openresty 1.21.4.1 is /usr/local/openresty/luajit/share/luajit-2.1.0-beta3

We need to modify LUA_PATH to work properly

neomantra commented 4 months ago

Thanks for pointing this out. I also note that the LuaJIT binary is now named luajit-2.1.ROLLING. I'm considering making a symlink that is just undecorated luajit-2.1.

neomantra commented 4 months ago

This has been amended to /usr/local/openresty/luajit/share/luajit-2.1/?.lua, removing the .0-beta3 suffix. I left the binary name unchanged / unlinked. This is going through CI/CD now and will tag 1.25.3.1-3 when finished.

neomantra commented 4 months ago

Released, thanks for the notice.