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 2022/04/29 13:01:46 UTC

[GitHub] [apisix] kwanhur opened a new issue, #6975: help request: dependency library lua-protobuf versions conflict

kwanhur opened a new issue, #6975:
URL: https://github.com/apache/apisix/issues/6975

   ### Description
   
   `make deps` install `opentelemetry-lua 0.1-3` failed at depending on `lua-protobuf 0.3.3`.
   
   `lua-protobuf 0.3.4` specified at `apisix-master-0.rockspec`, so they make the conflicts, like:
   
   `make deps` first time result
   ```shell
   apisix master-0 depends on opentelemetry-lua 0.1-3 (not installed)
   Installing https://luarocks.cn/opentelemetry-lua-0.1-3.rockspec
   Cloning into 'opentelemetry-lua'...
   remote: Enumerating objects: 249, done.
   remote: Counting objects: 100% (249/249), done.
   remote: Compressing objects: 100% (141/141), done.
   remote: Total 249 (delta 128), reused 196 (delta 87), pack-reused 0
   Receiving objects: 100% (249/249), 62.77 KiB | 0 bytes/s, done.
   Resolving deltas: 100% (128/128), done.
   Note: checking out '6c42aabc7396d5b45a23f96bd9155b567e3acf4d'.
   
   Missing dependencies for opentelemetry-lua 0.1-3:
      lua-protobuf 0.3.3 (not installed)
   
   opentelemetry-lua 0.1-3 depends on lua-protobuf 0.3.3 (not installed)
   Installing https://luarocks.cn/lua-protobuf-0.3.3-1.src.rock
   
   lua-protobuf 0.3.3-1 depends on lua >= 5.1 (5.1-1 provided by VM)
   gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c pb.c -o pb.o
   gcc -shared -o pb.so pb.o
   lua-protobuf 0.3.3-1 is now installed in /home/vagrant/apisix/deps (license: MIT)
   
   Checking stability of dependencies in the absence of
   lua-protobuf 0.3.4-1...
   
   Removing lua-protobuf 0.3.4-1...
   Removal successful.
   
   Error: Failed installing dependency: https://luarocks.cn/opentelemetry-lua-0.1-3.rockspec - Failed installing dependency: https://luarocks.cn/lua-protobuf-0.3.3-1.src.rock - failed deploying files. The following files were not installed:
   /home/vagrant/apisix/deps/share/lua/5.1/protoc.lua
   /home/vagrant/apisix/deps/lib/lua/5.1/pb.so
   make: *** [deps] Error 1
   ```
   
   `make deps` second time result
   ```shell
   apisix master-0 depends on lua-protobuf 0.3.4 (not installed)
   Installing https://luarocks.cn/lua-protobuf-0.3.4-1.src.rock
   
   lua-protobuf 0.3.4-1 depends on lua >= 5.1 (5.1-1 provided by VM)
   gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c pb.c -o pb.o
   gcc -shared -o pb.so pb.o
   lua-protobuf 0.3.4-1 is now installed in /home/vagrant/apisix/deps (license: MIT)
   
   Checking stability of dependencies in the absence of
   lua-protobuf 0.3.3-1...
   
   Removing lua-protobuf 0.3.3-1...
   Removal successful.
   
   Error: Failed installing dependency: https://luarocks.cn/lua-protobuf-0.3.4-1.src.rock - failed deploying files. The following files were not installed:
   /home/vagrant/apisix/deps/share/lua/5.1/protoc.lua
   /home/vagrant/apisix/deps/lib/lua/5.1/pb.so
   make: *** [deps] Error 1
   ```
   
   ### Environment
   
   - APISIX version (run `apisix version`): master branch
   - Operating system (run `uname -a`): Linux lvs 3.10.0-327.4.5.el7.x86_64 #1 SMP
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`): /usr/local/bin/luarocks 3.8.0
   


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   It looks different from yours:
   
   ```
   Installing https://luarocks.org/lua-protobuf-0.3.4-1.src.rock
   
   lua-protobuf 0.3.4-1 depends on lua >= 5.1 (5.1-1 provided by VM)
   gcc -O2 -fPIC -I/usr/local/openresty-debug/luajit/include/luajit-2.1 -c pb.c -o pb.o
   gcc -shared -o pb.so pb.o
   lua-protobuf 0.3.4-1 is now installed in /usr/local/apisix/deps (license: MIT)
   
   Checking stability of dependencies in the absence of
   lua-protobuf 0.3.3-1...
   
   Will not remove lua-protobuf 0.3.3-1.
   Removing it would break dependencies for:
   opentelemetry-lua 0.1-3
   
   Use --force to force removal (warning: this may break modules).
   ```


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] kwanhur commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   Before `make deps`, I had did `make undeps` because `deps` was broken in my env.


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] kwanhur commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   Thks very much for your checking!! @tzssangglass 
   
   I find some temporary `lua_protobuf` files still exist after `make undeps`.
   
   Removing them manually then `make deps` again, it's ok now.
   
   ```shell
   [vagrant@lvs apisix]$ ls -lh deps/lib/lua/5.1/lua_protobuf_0_3_4_1-pb.so~
   -rwxr-xr-x 1 vagrant vagrant 79K Mar 22 18:56 deps/lib/lua/5.1/lua_protobuf_0_3_4_1-pb.so~
   [vagrant@lvs apisix]$ ls -lh deps/share/lua/5.1/lua_protobuf_0_3_4_1-protoc.lua~
   -rw-r--r-- 1 vagrant vagrant 38K Mar 22 18:56 deps/share/lua/5.1/lua_protobuf_0_3_4_1-protoc.lua~
   [vagrant@lvs apisix]$ vi deps/share/lua/5.1/lua_protobuf_0_3_4_1-protoc.lua~
   [vagrant@lvs apisix]$ rm -f deps/share/lua/5.1/lua_protobuf_0_3_4_1-protoc.lua~
   [vagrant@lvs apisix]$ rm -f deps/lib/lua/5.1/lua_protobuf_0_3_4_1-pb.so~
   ```


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   Is there a specific step for reproduction?


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   @zhexuany Looks like you got it installed successfully?


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] kwanhur closed issue #6975: help request: dependency library lua-protobuf versions conflict

Posted by GitBox <gi...@apache.org>.
kwanhur closed issue #6975: help request: dependency library lua-protobuf versions conflict
URL: https://github.com/apache/apisix/issues/6975


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   It's strange that I can't reproduce it.
   
   


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] zhexuany commented on issue #6975: help request: dependency library lua-protobuf versions conflict

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

   It seems I meet the very same problem on my side, 
   
   ```


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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