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/14 09:26:00 UTC

[GitHub] [apisix] HuangDayu opened a new issue #2419: request help: 没有安装cjson,但仍要求删除cjson

HuangDayu opened a new issue #2419:
URL: https://github.com/apache/apisix/issues/2419


   ### Issue description
   
   ```log
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ make deps
   luarocks install rockspec/apisix-master-0.rockspec --tree=deps --only-deps --local
   Stopping after installing dependencies for apisix master-0
   
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ ./bin/apisix version
   please remove the cjson library in Lua, it may conflict with the cjson library in openresty.
    luarocks remove cjson
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ sudo luarocks remove cjson
   
   Error: Could not find rock 'cjson' in /usr/local
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS: 
   ```shell
   LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
   Distributor ID: Ubuntu
   Description:    Ubuntu 20.04.1 LTS
   Release:        20.04
   Codename:       focal
   ```
   


----------------------------------------------------------------
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 #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   If there is no more information to provide, I think this issue can be closed. Do you agree? @HuangDayu @membphis 


----------------------------------------------------------------
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 edited a comment on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

Posted by GitBox <gi...@apache.org>.
spacewander edited a comment on issue #2419:
URL: https://github.com/apache/apisix/issues/2419#issuecomment-708291426


   And `lua -e "require('table.new')"`. Please show us your output.


----------------------------------------------------------------
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] membphis edited a comment on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #2419:
URL: https://github.com/apache/apisix/issues/2419#issuecomment-709419952


   > ```shell
   > lhuangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ lua -e "require 'cjson'"
   > ```
   
   @HuangDayu 
   
   it seems that you installed `cjson` library for standard Lua land.


----------------------------------------------------------------
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] membphis commented on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   > ```shell
   > lua -e "require 'cjson'"
   > ```
   
   it seems that you installed `cjson` library for standard Lua land.


----------------------------------------------------------------
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 #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   And `lua -e "require('table.new')"`


----------------------------------------------------------------
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] HuangDayu commented on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   ```shell
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ lua -e "require 'cjson'"
   huangdayu@SK-20191227AUWA:~/apache-apisix-1.5$ lua -e "require('table.new')"
   lua: (command line):1: module 'table.new' not found:
           no field package.preload['table.new']
           no file './table/new.lua'
           no file '/usr/local/share/lua/5.1/table/new.lua'
           no file '/usr/local/share/lua/5.1/table/new/init.lua'
           no file '/usr/local/lib/lua/5.1/table/new.lua'
           no file '/usr/local/lib/lua/5.1/table/new/init.lua'
           no file '/usr/share/lua/5.1/table/new.lua'
           no file '/usr/share/lua/5.1/table/new/init.lua'
           no file './table/new.so'
           no file '/usr/local/lib/lua/5.1/table/new.so'
           no file '/usr/lib/x86_64-linux-gnu/lua/5.1/table/new.so'
           no file '/usr/lib/lua/5.1/table/new.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
           no file './table.so'
           no file '/usr/local/lib/lua/5.1/table.so'
           no file '/usr/lib/x86_64-linux-gnu/lua/5.1/table.so'
           no file '/usr/lib/lua/5.1/table.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
           [C]: in function 'require'
           (command line):1: in main chunk
           [C]: ?
   ```
   
   @spacewander 


----------------------------------------------------------------
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] HuangDayu closed issue #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   


----------------------------------------------------------------
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] HuangDayu commented on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   @spacewander 感谢,虽然我还没解决,但是我换CentOS了,CentOS就没问题。


----------------------------------------------------------------
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 #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   Look like you has cjson installed on your machine but it is not installed via luarocks.
   Maybe you can find cjson.so under your `package.cpath`.


----------------------------------------------------------------
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] HuangDayu commented on issue #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   > Look like you has cjson installed on your machine but it is not installed via luarocks.
   > Maybe you can find cjson.so under your `package.cpath`.
   
   [issues/2431](https://github.com/apache/apisix/issues/2431#issue-722178271) 可以解答一下这个问题吗?非常感谢。


----------------------------------------------------------------
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 #2419: request help: 没有安装cjson,但仍要求删除cjson

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


   Try `lua -e "require 'cjson'"`?


----------------------------------------------------------------
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