Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: lua_newuserdatauv #104

Open
ahmads-dy opened this issue Jun 29, 2024 · 1 comment
Open

undefined symbol: lua_newuserdatauv #104

ahmads-dy opened this issue Jun 29, 2024 · 1 comment

Comments

@ahmads-dy
Copy link

ahmads-dy commented Jun 29, 2024

hey I getting this error while trying to start nginx:

undefined symbol: lua_newuserdatauv
stack traceback:
[C]: at 0x7fd2c07ac720
[C]: in function 'require'
/etc/nginx/ljbc/load_modules.ljbc: in function </etc/nginx/ljbc/load_modules.ljbc:0>

nginx.conf:
lua_package_path "/etc/nginx/ljbc/?.ljbc;/usr/local/share/lua/5.4/?.lua"; # ";;" omitted on purpose
lua_package_cpath "/usr/local/lib/lua/5.4/?.so"; # ";;" omitted on purpose

in load_modules i do:
require('cjson')

lua version: Lua 5.4.4

lua-cjson is installed via luarocks5.4:
lua-cjson
2.1.0.10-1 (installed) - /usr/local/lib/luarocks/rocks-5.4

is this a compatible issue? I only can use lua 5.4.4 since it's the only lua version that is supported in AL2023 (Amazon Linux 2023)

installing the latest version of lua-cjson(2.1.0.14) didn't help

the usage of lua_newuserdata in here -> link

should be migrated to lua_newuserdatauv -> link

@zhuizhuhaomeng
Copy link

Go to https://openresty.org/en/using-luarocks.html for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants