-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
[install] Unable to complete bundle install - machine `arm64-apple' not recognized #2171
Comments
arm64-apple-darwin20': machine
arm64-apple' not recognized
arm64-apple-darwin20': machine
arm64-apple' not recognized
I'm able to install nokogiri fine
However I'm not able to complete |
@mengqing Thanks for reporting. The root cause of this is upstream in libxml2's build files. However, bundler should be installing the native precompiled gem for you (like |
@mengqing I hate to pass this problem off, but I'm not sure how to help if Would you be willing to open a bundler-related issue at the rubygems project? Here's a link to do so: https://github.com/rubygems/rubygems/issues/new?assignees=&labels=Bundler&template=bundler-related-issue.md&title= |
@flavorjones Thanks Mike, after a few hours of fiddling, I was able to finish
I'm not sure why though, could it be that the version packaged with Nokogiri isn't compatible? Anyway I'm closing this issue now |
I've had issues with outdated In this case, for nokogiri:
Or, rvm -- even pre-3.0 version of RUBY fail to compile for the same reason:
and the log file contains:
It's just insane. This is such a stubborn error that has such a simple fix but it has to be done every single time, in every place where outdated I wish rvm/gem/bundle let you easily edit the extracted source prior to starting the standard compilation step because a simple I don't know enough about autoconf's use of Right now the very latest version of libxml2, 2.9.10, released October 2019, with an outdated
and after a simple
This fix applies to literally every instance of this error on Apple's arm64 hardware. The problem is, even if we ask all of these package maintainers to update their |
@milosivanovic Hi! Thanks for your comment. I can see you're frustrated. There's lots to unpack in your comment, but I'll try to be brief and give you some things you might want to try next. You're commenting at length on an issue that's been closed for many months, on a repo that is unrelated to the underlying issue of A) open a new issue to get help installing Nokogiri, or For (A), Nokogiri ships precompiled binaries for M1 / arm64 architecture. It seems like you're not using this native gem, and it's not clear why. It's also not clear from your comment what command you're running or what your system config is. Please open a new issue and fill out the "Installation problem" template if you'd like to get help. For (B), assuming you truly don't want the precompiled version for some reason, Nokogiri can (and does) patch libxml2 at installation/compilation. In fact, we've even done something similar in the past for ppc64le architecture, see #1280 and #1326. I'm only asking for someone to spend a few minutes pairing with me on it, and testing compilation of a branch to verify the solution on M1 hardware. For (C), it's not totally clear whether libxml2 will take responsibility since this issue is really in So, once again, please pick one:
Thanks for reading, and sorry that you're having trouble. |
Also see #2214 which I just opened to try to fix this. I need help testing. |
#2214 has been merged and should be fixed in the next release. |
Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?
What is the complete output of
gem install
orbundle install
?If installation completed but is broken, what is the complete output from
nokogiri -v
?If installation failed during compilation, what are the complete contents of the
mkmf.log
file generated during the failed installation?Tell us about your system!
What is the output from
ruby -v
?ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
What is the output from
gem -v
?3.2.3
What is the output from
gem env
?If you're using Bundler:
bundle version
?Bundler version 2.2.3 (2021-01-12 commit unknown)
bundle config
? (Take care to redact any credentials)If you're on MacOS, please note:
Version 12.3 (12C33)
gcc -v
orclang -v
Apple clang version 12.0.0 (clang-1200.0.32.28)
If Linux or a BSD variant, please note:
uname -a
/etc/lsb-release
.If Windows, please note:
The text was updated successfully, but these errors were encountered: