애플 실리콘 구조 호환성

10641 단어 lnrpc

묘사

이 보석을 M1 맥에서 사용할 수 있는지 알고 싶습니다.

토론 #1

추적 기록이 있습니까?프로젝트가 최신grpc와 구글protobuf 버전을 사용했는지 확인해 주시겠습니까?

토론 #2

기본 루비 애플리케이션:
require "lnrpc"
credentials = File.read("tls.cert")
macaroon = File.read("admin.macaroon").unpack("H*")
client = Lnrpc::Lightning::Stub.new("localhost:10009", GRPC::Core::ChannelCredentials.new(self.credentials))
request = Lnrpc::GetInfoRequest.new
response = client.get_info(request, { metadata: { macaroon: macaroon } }) #=> Lnrpc::GetInfoResponse
puts response.alias
이것이 바로 내가 얻은 잘못이다.
<internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle, 9): no suitable image found.  Did find: (LoadError)
        /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle: mach-o, but wrong architecture
        /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle: mach-o, but wrong architecture - /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/grpc.rb:20:in `<top (required)>'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc.rb:19:in `require_relative'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc.rb:19:in `<top (required)>'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/grpc_services/autopilotrpc/autopilot_services_pb.rb:4:in `<top (required)>'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:5:in `block in <top (required)>'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:4:in `each'
        from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:4:in `<top (required)>'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
        from lnconnect.rb:1:in `<main>'
<internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- lnrpc (LoadError)
        from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
        from lnconnect.rb:1:in `<main>'
Stacktrace나 다른 질문들을 어떻게 얻을 수 있는지 모르겠습니다.만약 당신이 능력이 있다면 나를 지도해 주세요.

토론 #셋

gem를 설치한 것이 확실합니까?그것은 사용할 수 있습니까?당신은 서류를 가지고 있습니까?lnrpc를 설치했습니까?

On 11. Jul 2021, at 17:40, Ivan Raszl @.***> wrote:

 This is the basic ruby app:

require "lnrpc" credentials = File.read("tls.cert") macaroon = File.read("admin.macaroon").unpack("H*") client = Lnrpc::Lightning::Stub.new("localhost:10009", GRPC::Core::ChannelCredentials.new(self.credentials)) request = Lnrpc::GetInfoRequest.new response = client.get_info(request, { metadata: { macaroon: macaroon } }) #=> Lnrpc::GetInfoResponse puts response.alias This is the error I'm getting:

:85:in require': dlopen(/usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle, 9): no suitable image found. Did find: (LoadError) /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle: mach-o, but wrong architecture /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle: mach-o, but wrong architecture - /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/3.0/grpc_c.bundle from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:inrequire' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc/grpc.rb:20:in <top (required)>' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc.rb:19:inrequire_relative' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/grpc-1.38.0-universal-darwin/src/ruby/lib/grpc.rb:19:in <top (required)>' from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:inrequire' from :85:in require' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/grpc_services/autopilotrpc/autopilot_services_pb.rb:4:in' from :85:in require' from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:inrequire' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:5:in block in <top (required)>' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:4:ineach' from /usr/local/var/rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/lnrpc-0.13.0/lib/lnrpc.rb:4:in <top (required)>' from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:inrequire' from :160:in rescue in require' from <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:inrequire' from lnconnect.rb:1:in <main>' <internal:/usr/local/var/rbenv/versions/3.0.1/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:inrequire': cannot load such file -- lnrpc (LoadError) from :85:in require' from lnconnect.rb:1:in

' — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

토론 #4

관심 가져주셔서 감사합니다.Gemfile이 하나 있는데 Bundle을 사용합니다.
source 'https://rubygems.org'
ruby '3.0.1'
gem 'lnrpc', '~> 0.13.0'
bundle
Using bundler 2.2.16
Using google-protobuf 3.17.3 (universal-darwin)
Using googleapis-common-protos-types 1.1.0
Using grpc 1.38.0 (universal-darwin)
Using lnrpc 0.13.0
Bundle complete! 1 Gemfile dependency, 5 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
발생할 수 있는 문제에 대해 어떤 견해를 가지고 있습니까?

토론 #5

의존항을 요구하려면 bundler를 사용해야 한다고 생각합니다.
아마도 bundle exec로 스크립트를 실행할 수 있습니다
당신의 도움과 생각에 감사 드립니다.
나는 내가 문제를 축소했다고 생각한다.

토론 #6

그것도 이 보석 밖에서 운행하지 않을 것이다.나는 인텔 맥 컴퓨터에서도 같은 문제가 있다.그러니까 이건 M1이 문제가 아니야.내가 먼저 이 문제를 해결할 거야...grpc 네, 업데이트해 주셔서 감사합니다.
루비3 아직 테스트 안 했어요.우리도 조사할 거야.
루비 2.7은 문제가 아닐 거야.

On 13. Jul 2021, at 10:57, Ivan Raszl @.***> wrote:

 Thanks for following up. I do have a Gemfile and I use Bundle:

source 'https://rubygems.org' ruby '3.0.1' gem 'lnrpc', '~> 0.13.0' bundle Using bundler 2.2.16 Using google-protobuf 3.17.3 (universal-darwin) Using googleapis-common-protos-types 1.1.0 Using grpc 1.38.0 (universal-darwin) Using lnrpc 0.13.0 Bundle complete! 1 Gemfile dependency, 5 gems now installed. Use bundle info [gemname] to see where a bundled gem is installed. Any ideas on what could be wrong?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

토론 #7

bundler와 캐리어 의존항에 대한 잘못된 생각에 대해 깊은 사과의 뜻을 표합니다.
나는 방금 루비 3과 M1에서 그것을 테스트했다. 그것은 나에게 매우 효과가 있다.
나는 여전히 네가 본

토론 #8

이 무엇인지 알고 싶다.당신은 더 많은 디버깅을 할 수 있습니까?LoadError 나는 모든 것이 정상이라는 것을 확인할 수 있다. 다른 곳에서 논의한 바와 같이 주소를 추가해야 한다.

토론 #9

좋은 웹페이지 즐겨찾기