openresty / luajit2

OpenResty's Branch of LuaJIT 2
https://luajit.org/luajit.html
Other
1.24k stars 200 forks source link

error on exdata.lua #86

Closed midorinet closed 4 years ago

midorinet commented 4 years ago

Hi,

I'm trying to install manually. However I keep getting error

nginx: [error] failed to run the Lua code for coroutine_api: 2: coroutine_api:2: module 'thread.exdata' not found:
        no field package.preload['thread.exdata']
        no file './thread/exdata.lua'
        no file '/usr/share/luajit-2.1.0-beta3/thread/exdata.lua'
        no file '/usr/local/share/lua/5.1/thread/exdata.lua'
        no file '/usr/local/share/lua/5.1/thread/exdata/init.lua'
        no file '/usr/share/lua/5.1/thread/exdata.lua'
        no file '/usr/share/lua/5.1/thread/exdata/init.lua'
        no file './thread/exdata.so'
        no file '/usr/local/lib/lua/5.1/thread/exdata.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/thread/exdata.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './thread.so'
        no file '/usr/local/lib/lua/5.1/thread.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/thread.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

Please kindly advice

agentzh commented 4 years ago

@midorinet Seems like you are not using our OpenResty's LuaJIT. Check the path of the libluajit so file actually loaded into your nginx server. BTW, it's highly recommended to use our OpenResty release tarballs and/or pre-built packages to avoid such things.

midorinet commented 4 years ago

Thanks for your advice. It's been fixed

mhkarimi1383 commented 3 years ago

I have the same problem followed documents by OpenResty but nothing works