Closed pavlenex closed 3 years ago
Okay so the problem was indeed the M1 chip incompatibility.
1. Go to your applications > utilities folder.
2. Right click and click "Get Info" on your terminal app
3. Check "Open Using Rosetta" option
4. Start your terminal app
5. bundle install
This was helpful https://github.com/CocoaPods/CocoaPods/issues/10220#issuecomment-736118564
@pavlenex Based on the log including this file path:
/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.0-x86_64-darwin/lib/nokogiri.rb
it looks like you've installed the x86_64-darwin native platform gem, and not the arm64-darwin native platform gem. This shouldn't happen on an M1, and indicates that something deeper is wrong. Would you mind opening an issue with the Nokogiri project at https://github.com/sparklemotion/nokogiri/issues/new/choose ?
Is it possible that you're using the Mac system ruby? There are known issues between bundler and that version of ruby (which Apple patches), see https://github.com/rubygems/rubygems/issues/4234 for details.
Someone else has written an essay about other issues with the Mac system ruby at https://mac.install.guide/faq/do-not-use-mac-system-ruby/index.html
Hey @flavorjones indeed it's Mac's default (system) Ruby. Thanks I'll have a look as I'm still facing some issues, could be that - thanks!
Thank to @flavorjones. I fixed the issue. In my machine, there are two nokogiri
gems installed.
Select gem to uninstall:
nokogiri-1.13.8-x86_64-linux
So I uninstalled the second one and ran bundle install
again and it worked fine.
Hello, I'm trying to build this project https://github.com/BitcoinDesign/Guide on a freshly installed mAC m1, and I'm getting the following errors. I've done a fresh clean re-install of my OS just because of this error, and unfortunately, it didn't resolve it.
Any ideas what might be wrong here?
Enviroment
Mac mini (M1, 2020)
MacOS Big Sur 11.2.3 (20D91)
Logs