Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's wrong when execute conan_install.sh in example #7

Open
1923982924 opened this issue Mar 5, 2019 · 24 comments
Open

It's wrong when execute conan_install.sh in example #7

1923982924 opened this issue Mar 5, 2019 · 24 comments

Comments

@1923982924
Copy link

This's wrong message.
/usr/bin/ld: cannot find -lreadline
collect2: error: ld returned 1 exit status
gmake[2]: *** [liblua-cpp.so] Error 1
gmake[1]: *** [CMakeFiles/lua-cpp.dir/all] Error 2
gmake: *** [all] Error 2
lua-cpp/5.3.4@jinq0123/testing:
lua-cpp/5.3.4@jinq0123/testing: ERROR: Package '4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' build failed
lua-cpp/5.3.4@jinq0123/testing: WARN: Build folder /root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e
ERROR: lua-cpp/5.3.4@jinq0123/testing: Error in build() method, line 32
cmake.build()
ConanException: Error 512 while executing cmake --build '/root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' '--' '-j8'

@jinq0123
Copy link
Owner

jinq0123 commented Mar 5, 2019

Please install readline:

yum install readline-devel.x86_64 readline-devel.i386 ncurses-devel.i386 ncurses-devel.x86_64  

@1923982924
Copy link
Author

@jinq0123
Thanks. But it cann't work. It has wrong message.
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

@jinq0123
Copy link
Owner

jinq0123 commented Mar 5, 2019

Error message?

@1923982924
Copy link
Author

@jinq0123 only this.
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

@jinq0123
Copy link
Owner

jinq0123 commented Mar 6, 2019

Please give full output.

@1923982924
Copy link
Author

this‘s output message.

remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 16411 (delta 23), reused 32 (delta 18), pack-reused 16354
Receiving objects: 100% (16411/16411), 5.82 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (12081/12081), done.
Submodule path 'third_party/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
Cloning into 'third_party/protobuf'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 60097 (delta 1), reused 1 (delta 1), pack-reused 60093
Receiving objects: 100% (60097/60097), 50.06 MiB | 897.00 KiB/s, done.
Resolving deltas: 100% (40678/40678), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 4983 (delta 3), reused 6 (delta 2), pack-reused 4973
Receiving objects: 100% (4983/4983), 1.57 MiB | 629.00 KiB/s, done.
Resolving deltas: 100% (3269/3269), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5129 (delta 2), reused 3 (delta 1), pack-reused 5123
Receiving objects: 100% (5129/5129), 3.62 MiB | 807.00 KiB/s, done.
Resolving deltas: 100% (3602/3602), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

@1923982924
Copy link
Author

in example,this's error message.

./lua-cpp: error while loading shared libraries: liblua-cpp.so: cannot open shared object file: No such file or directory

@jinq0123
Copy link
Owner

jinq0123 commented Mar 6, 2019

Check if liblua-cpp.so exists. Maybe copy_from_conan.sh.example failed to copy this file. Try to copy manually.

@jinq0123
Copy link
Owner

jinq0123 commented Mar 6, 2019

Not know why Failed to recurse into submodule path. Try to remove all and retry.

@1923982924
Copy link
Author

It‘s very nice, if you provide a simple way to call it

@1923982924
Copy link
Author

@jinq0123 It's also Error when remove all and retry or git submodule update --init or delete it.
This's message.

Receiving objects: 100% (60611/60611), 50.43 MiB | 121.00 KiB/s, done.
Resolving deltas: 100% (41162/41162), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 4999 (delta 9), reused 26 (delta 9), pack-reused 4973
Receiving objects: 100% (4999/4999), 1.58 MiB | 240.00 KiB/s, done.
Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'
ERROR: gRPC/1.8.3@inexorgame/stable: Error in source() method, line 30
self.run("git clone -b v{} --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-{}".format(self.version, self.version))
ConanException: Error 256 while executing git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

@jinq0123
Copy link
Owner

Try to execute

git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3

to find the error.

@1923982924
Copy link
Author

1923982924 commented Mar 12, 2019

It‘s also error.But it hasn't detail error message.

Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'

@jinq0123
Copy link
Owner

Please give full input and output.

@1923982924
Copy link
Author

Execute
git clone -b v1.8.3 --single-branch --recursive --depth 1 https://github.com/grpc/grpc.git grpc-1.8.3.

The result is this.

Submodule 'third_party/re2' (https://github.com/google/re2) registered for path 'third_party/re2'
Cloning into 'third_party/googletest'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 16411 (delta 0), reused 0 (delta 0), pack-reused 16409
Receiving objects: 100% (16411/16411), 5.65 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (12102/12102), done.
Submodule path 'third_party/bloaty/third_party/googletest': checked out 'a2b8a8e07628e5fd60644b6dd99c1b5e7d7f1f47'
Cloning into 'third_party/libFuzzer'...
fatal: unable to access 'https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer/': Failed to connect to 2404:6800:4008:c06::52: Network is unreachable
Clone of 'https://chromium.googlesource.com/chromium/llvm-project/llvm/lib/Fuzzer' into submodule path 'third_party/libFuzzer' failed
Cloning into 'third_party/boringssl'...
remote: Enumerating objects: 161, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 68858 (delta 68), reused 105 (delta 44), pack-reused 68697
Receiving objects: 100% (68858/68858), 94.31 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (48104/48104), done.
Submodule path 'third_party/boringssl': checked out 'be2ee342d3781ddb954f91f8a7e660c6f59e87e5'
Cloning into 'third_party/boringssl-with-bazel'...
remote: Enumerating objects: 161, done.
remote: Counting objects: 100% (161/161), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 68858 (delta 68), reused 105 (delta 44), pack-reused 68697
Receiving objects: 100% (68858/68858), 94.31 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (48104/48104), done.
Submodule path 'third_party/boringssl-with-bazel': checked out '886e7d75368e3f4fab3f4d0d3584e4abfc557755'
Cloning into 'third_party/cares/cares'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 9009 (delta 0), reused 0 (delta 0), pack-reused 9008
Receiving objects: 100% (9009/9009), 5.38 MiB | 98.00 KiB/s, done.
Resolving deltas: 100% (5168/5168), done.
Submodule path 'third_party/cares/cares': checked out '3be1924221e1326df520f8498d704a5c4c8d0cce'
Cloning into 'third_party/gflags'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2355 (delta 9), reused 22 (delta 9), pack-reused 2333
Receiving objects: 100% (2355/2355), 1.51 MiB | 110.00 KiB/s, done.
Resolving deltas: 100% (1374/1374), done.
Submodule path 'third_party/gflags': checked out '30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e'
Submodule 'doc' (https://github.com/gflags/gflags.git) registered for path 'doc'
Cloning into 'doc'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 2355 (delta 9), reused 22 (delta 9), pack-reused 2333
Receiving objects: 100% (2355/2355), 1.51 MiB | 335.00 KiB/s, done.
Resolving deltas: 100% (1374/1374), done.
Submodule path 'third_party/gflags/doc': checked out '971dd2a4fadac9cdab174c523c22df79efd63aa5'
Cloning into 'third_party/googletest'...
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 16411 (delta 0), reused 0 (delta 0), pack-reused 16409
Receiving objects: 100% (16411/16411), 5.65 MiB | 836.00 KiB/s, done.
Resolving deltas: 100% (12102/12102), done.
Submodule path 'third_party/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
Cloning into 'third_party/protobuf'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 60651 (delta 5), reused 3 (delta 1), pack-reused 60632
Receiving objects: 100% (60651/60651), 50.45 MiB | 297.00 KiB/s, done.
Resolving deltas: 100% (41177/41177), done.
Submodule path 'third_party/protobuf': checked out '2761122b810fe8861004ae785cc3ab39f384d342'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark'
Cloning into 'third_party/benchmark'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 4999 (delta 9), reused 26 (delta 9), pack-reused 4973
Receiving objects: 100% (4999/4999), 1.58 MiB | 90.00 KiB/s, done.
Resolving deltas: 100% (3275/3275), done.
Submodule path 'third_party/protobuf/third_party/benchmark': checked out '360e66c1c4777c99402cf8cd535aa510fee16573'
Cloning into 'third_party/zlib'...
remote: Enumerating objects: 5129, done.
remote: Total 5129 (delta 0), reused 0 (delta 0), pack-reused 5129
Receiving objects: 100% (5129/5129), 3.61 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (3604/3604), done.
Submodule path 'third_party/zlib': checked out 'cacf7f1d4e3d44d871b605da3b647f07d718623f'
Failed to recurse into submodule path 'third_party/bloaty'

@jinq0123
Copy link
Owner

Need proxy to access 'https://chromium.googlesource.com'

@1923982924
Copy link
Author

If I want to write lua script ,i modify only lua script and proto in helloworld ,and recompile . Is't ok?

@jinq0123
Copy link
Owner

Yes.

@1923982924
Copy link
Author

1923982924 commented Mar 13, 2019

I write a lua script by modifing greeter_client.lua ,and the same as i modifing greeter_service.lua,then execute ./lua-cpp greeter_client.lua ,i get some error message

./lua-cpp: ../../src/lua/grpc_lua/client/service_stub/MethodInfo.lua:30: No such service: Register.doServiceRegister stack traceback: [C]: in function 'luapbintf.get_rpc_input_name' ../../src/lua/grpc_lua/client/service_stub/MethodInfo.lua:30: in function 'grpc_lua.client.service_stub.MethodInfo.new' ../../src/lua/grpc_lua/client/service_stub/ServiceStub.lua:231: in function 'grpc_lua.client.service_stub.ServiceStub._get_method_info' ../../src/lua/grpc_lua/client/service_stub/ServiceStub.lua:91: in function 'grpc_lua.client.service_stub.ServiceStub.sync_request' greeter_client.lua:20: in local 'main' greeter_client.lua:33: in main chunk [C]: in ?

greeter_client.lua
`
--- Hello world greeter example client.
-- greeter_client.lua

-- Current work dir: grpc-lua/examples/helloworld
package.path = "../../src/lua/?.lua;" .. package.path

local grpc = require("grpc_lua.grpc_lua")

local function main()
grpc.import_proto_file("register/Register.proto")
local stub = grpc.service_stub("x.x.x.x:80", "Register.doServiceRegister")

-- Sync request.


local services = {{serviceName="/test",tag={key="tag1",value=1},properties={key="pro",value=1}}}

local request = {services=services}
local response = assert(stub:sync_request("doServiceRegister", request))
print("Greeter received: " .. response)

-- Async request.
--  stub:async_request("SayYoo", request, function(resp)
--     print("Async greeter received: " .. resp.msg)
--     stub:shutdown()  -- to stop stub:run()
--  end)


stub:run()

end -- main()

main()

`

greeter_service.lua
`
--- Hello world greeter example server side service.
-- greeter_service.lua

local M = {}

local grpc = require("grpc_lua.grpc_lua")
grpc.import_proto_file("register/Register.proto")


--- Public functions.
-- @section public

function M.doServiceRegister(request, replier)
local response = {services={key = "Success",value=0}}
replier:reply(response);
end

return M
`

@jinq0123
Copy link
Owner

No such service: Register.doServiceRegister

@1923982924
Copy link
Author

Thanks. What do i need to support lua 5.1? Can you help me?

@jinq0123
Copy link
Owner

Sorry. I can't.

@1923982924
Copy link
Author

Do you have some good advices to let it support lua 5.1 ?

@jinq0123
Copy link
Owner

No. I have no experience in lua51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants