lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

lua nginx on RHEL 9 from SRPM

Open leeiitb opened this issue 3 years ago • 3 comments
trafficstars

  • Nginx 1.23.1-1.el9 On RedHat EL 9.

Build RPM from SRPM at nginx.org which goes OK.

Install is OK but if I start nginx ----------------------------------%<---------------------------------- localhost systemd[1]: Starting nginx - high performance web server... localhost nginx[546840]: nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://githu> localhost nginx[546840]: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://o> localhost nginx[546840]: no field package.preload['resty.core'] localhost nginx[546840]: no file './resty/core.lua' localhost nginx[546840]: no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua' localhost nginx[546840]: no file '/usr/local/share/lua/5.1/resty/core.lua' localhost nginx[546840]: no file '/usr/local/share/lua/5.1/resty/core/init.lua' localhost nginx[546840]: no file '/usr/share/lua/5.1/resty/core.lua' localhost nginx[546840]: no file '/usr/share/lua/5.1/resty/core/init.lua' localhost nginx[546840]: no file './resty/core.so' localhost nginx[546840]: no file '/usr/local/lib/lua/5.1/resty/core.so' localhost nginx[546840]: no file '/usr/lib64/lua/5.1/resty/core.so' localhost nginx[546840]: no file '/usr/local/lib/lua/5.1/loadall.so' localhost nginx[546840]: no file './resty.so' localhost nginx[546840]: no file '/usr/local/lib/lua/5.1/resty.so' localhost nginx[546840]: no file '/usr/lib64/lua/5.1/resty.so' localhost nginx[546840]: no file '/usr/local/lib/lua/5.1/loadall.so') in /etc/nginx/nginx.conf:32 localhost systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE localhost systemd[1]: nginx.service: Failed with result 'exit-code'. localhost systemd[1]: Failed to start nginx - high performance web server. ----------------------------------%<----------------------------------

Kindly advice

leeiitb avatar Jul 25 '22 02:07 leeiitb

You need install https://github.com/openresty/lua-resty-core and https://github.com/openresty/lua-resty-lrucache

cppcoffee avatar Aug 13 '22 13:08 cppcoffee

https://github.com/openresty/lua-resty-core "This library is included with every OpenResty release." I have installed OpenResty from the EL8 yum repository. I will open an issue to release OpenResty for EL9.

leeiitb avatar Aug 16 '22 09:08 leeiitb

https://github.com/openresty/openresty/issues/857

leeiitb avatar Aug 16 '22 09:08 leeiitb