Hi:

I am using Luarocks 3 now.

I make a try to install Apache APISIX by Luarocks `sudo luarocks install
apisix`, and it is successful.

I got an error message when I try to run the Apache APISIX server. Here is
the error message:

nginx: [error] init_by_lua error: init_by_lua:3: module 'apisix' not found:
  no field package.preload['apisix']
  no file '/usr/local/apisix//deps/share/lua/5.1/apisix.lua'
  no file '/usr/share/lua/5.1/apisix/lua/apisix.lua'
  no file '/usr/local/share/lua/5.1/apisix/lua/apisix.lua'

I found that the luarocks will install the APISIX to
`/usr/share/lua/5.3/****`.

I think we should rename the folder lua[1] to apisix, then we do not need
to hack for the Lua finding path[2].


[1] https://github.com/apache/incubator-apisix/tree/master/lua
[2]
https://github.com/apache/incubator-apisix/blob/master/bin/apisix#L105-L107


-- 

*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix

Reply via email to