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: add workaround for rosetta2 path error to msg #10319
Conversation
It's possible the user's terminal emulator is running under rosetta2. Consequently, the i86_64 version of the ruby interpreter will be used. Likely, the right thing to do is simply install the arm64 version of the requested package. This can be accomplished using: arch -arm64 brew ... Fixes: Homebrew#10313
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Looks good so far!
@MikeMcQuaid let me know how you like the new prose. Thinking about it now, I wonder if we should but the more hand-holdy explanation in the
|
You'll need to install into the expected location to hit that codepath (or temporarily edit code elsewhere to match whatever prefix you're using). |
Incorporate suggested wording Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @dcow! |
It's possible the user's terminal emulator is running under rosetta2.
Consequently, the i86_64 version of the ruby interpreter will be used.
Likely, the right thing to do is simply install the arm64 version of the
requested package. This can be accomplished using: arch -arm64 brew ...
Fixes: #10313
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?brew man
locally and committed any changes?Please help direct me to the right tests (if necessary). Also, I'm unable to test this because it does no appear that brew cares about the prefix when it's not in /opt or /usr. When I run
arch -x86_64 brew install ...
it completes successfully and does not complain. Is there a way to instruct brew to care so I can hit the codepath?