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:
[email protected]


Reply via email to