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
Missing support for Apple Silicon #195
Comments
Could you check what will happen when you do the commands below?:
|
I brew installed the ruby compiled for arm64 architecture, and then I conducted the commands. The output is:
|
I guess there is a mismatch between the ruby runtime's architecture (x86/arm64) and the msgpack's binary architecture (this should be determined by the architecture when you run I don't have M1 mac for now, so I cannot identify & fix this problem immediately. |
It is caused by rubygems which copies shared objects to the library path w/o the arch name. |
This works. Closed with thanks |
Hi @TonyWu20, I'm facing the same issue, can you explain what exactly you did to get this fixed? |
Can i know how has it been resolved. i am facing the same issue ruby -e 'require "msgpack"' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in require' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in rescue in require'3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in require' 2: from /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack.rb:8:in <top (required)>'1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': dlopen(/Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle - /Library/Ruby/Gems/2.6.0/gems/msgpack-1.4.2/lib/msgpack/msgpack.bundle (LoadError)
|
Please read #195 (comment). |
i did not install ruby using homebrew, hence there is nothing in /opt/homebrew. I ran bundle that installed ruby for me. UPDATE: I fixed it by - brew install ruby |
Would this happen if not using Homebrew? I'm experiencing this issue on an M1 Mac but haven't used Homebrew on this machine. Where might this wrong bundle file exist then? |
You can see the path which caused the problem, in the log which you posted.
|
Hi, can someone make this more clear? I don't understand what solved the issue. |
I needed to delete some gems that were targeting a wrong architecture. These instructions use
|
@cmolina Thanks. This was the only thing that worked after countless hours trying! |
@cmolina Many thanks! After a day trying this actually solved the problem. |
@cmolina Hey, after a day of trial and errors we have solved the same problem! Thx 🥳 |
Calling msgpack-ruby on Mac with Apple Silicon will show
LoadError: dlopen(/Users/tonywu/Downloads/msgpack-ruby-master/lib/msgpack/msgpack.bundle, 0x0009): missing compatible arch in /Users/tonywu/Downloads/msgpack-ruby-master/lib/msgpack/msgpack.bundle - /Users/tonywu/Downloads/msgpack-ruby-master/lib/msgpack/msgpack.bundle
Since msgpack has supported Apple Silicon, I hope the msgpack-ruby can add support to it soon. Thanks for your great effort!
The text was updated successfully, but these errors were encountered: