You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/29 10:03:41 UTC

[GitHub] [apisix] dyingbleed opened a new issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

dyingbleed opened a new issue #2562:
URL: https://github.com/apache/apisix/issues/2562


   ### Issue description
   I followed the [Configure and Installation](https://github.com/apache/apisix#configure-and-installation) step by step install APISIX 2.0, after run `api version`, I got the following error:
   
   ```
   lua: bin/apisix:83: module 'tinyyaml' not found:
   	no field package.preload['tinyyaml']
   	no file '/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua'
   	no file './tinyyaml.lua'
   	no file '/usr/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/lib64/lua/5.1/tinyyaml.lua'
   	no file '/usr/lib64/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/apisix/deps/lib64/lua/5.1/tinyyaml.so'
   	no file '/usr/local/apisix/deps/lib/lua/5.1/tinyyaml.so'
   	no file './tinyyaml.so'
   	no file '/usr/lib64/lua/5.1/tinyyaml.so'
   	no file '/usr/lib64/lua/5.1/loadall.so'
   stack traceback:
   	[C]: in function 'require'
   	bin/apisix:83: in main chunk
   	[C]: ?
   ```
   and
   
   ```
   lua: bin/apisix:84: module 'resty.template' not found:
   	no field package.preload['resty.template']
   	no file '/usr/local/apisix/deps/share/lua/5.1/resty/template.lua'
   	no file './resty/template.lua'
   	no file '/usr/share/lua/5.1/resty/template.lua'
   	no file '/usr/share/lua/5.1/resty/template/init.lua'
   	no file '/usr/lib64/lua/5.1/resty/template.lua'
   	no file '/usr/lib64/lua/5.1/resty/template/init.lua'
   	no file '/usr/local/apisix/deps/lib64/lua/5.1/resty/template.so'
   	no file '/usr/local/apisix/deps/lib/lua/5.1/resty/template.so'
   	no file './resty/template.so'
   	no file '/usr/lib64/lua/5.1/resty/template.so'
   	no file '/usr/lib64/lua/5.1/loadall.so'
   	no file '/usr/local/apisix/deps/lib64/lua/5.1/resty.so'
   	no file '/usr/local/apisix/deps/lib/lua/5.1/resty.so'
   	no file './resty.so'
   	no file '/usr/lib64/lua/5.1/resty.so'
   	no file '/usr/lib64/lua/5.1/loadall.so'
   stack traceback:
   	[C]: in function 'require'
   	bin/apisix:84: in main chunk
   	[C]: ?
   ```
   After I install the missing packages:
   
   ```
   luarocks install lua-tinyyaml
   luarocks install lua-resty-template
   ```
   
   it works.
   
   ### Environment
   
   * apisix version: 2.0
   * OS: CentOS 7
   
   ### What's the actual result? 
   
   Missing package `lua-tinyyaml` and `lua-resty-template`.
   
   ### What's the expected result?
   
   Print APISIX version.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dyingbleed closed issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

Posted by GitBox <gi...@apache.org>.
dyingbleed closed issue #2562:
URL: https://github.com/apache/apisix/issues/2562


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Miss-you commented on issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #2562:
URL: https://github.com/apache/apisix/issues/2562#issuecomment-718880471


   Try the `make deps`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] wfgydbu commented on issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

Posted by GitBox <gi...@apache.org>.
wfgydbu commented on issue #2562:
URL: https://github.com/apache/apisix/issues/2562#issuecomment-719113879


   Please try `make deps` before `make init`, and make sure all dependencies has been installed **successfully**. Some of them may fail but the installation will continue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] idbeta commented on issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

Posted by GitBox <gi...@apache.org>.
idbeta commented on issue #2562:
URL: https://github.com/apache/apisix/issues/2562#issuecomment-718620979


   Maybe the install-dependencies.md is not right about install openresty on centos7. 
   you can see if the openresty existed, if not, you can resolved like that:
   ```shell
   wget https://openresty.org/package/centos/openresty.repo
   sudo mv openresty.repo /etc/yum.repos.d/
   sudo yum check-update
   sudo yum install openresty
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #2562: bug: APISIX 2.0 run failed on CentOS 7 missing package lua-tinyyaml and lua-resty-template

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2562:
URL: https://github.com/apache/apisix/issues/2562#issuecomment-718607292


   Can't reproduce in my side.
   `make deps` will install dependencies under `$(pwd)/deps`, instead of global. Did you install the apisix under `/usr/local/apisix`? What's the result of `ls /usr/local/apisix/deps`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org