Update Library/Homebrew/install.rb

Incorporate suggested wording

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
David 2021-01-25 10:39:29 -07:00 committed by GitHub
parent 0562d0c2b6
commit db52d6a725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,15 +34,10 @@ module Homebrew
HOMEBREW_PREFIX.to_s == HOMEBREW_MACOS_ARM_DEFAULT_PREFIX HOMEBREW_PREFIX.to_s == HOMEBREW_MACOS_ARM_DEFAULT_PREFIX
if Hardware::CPU.in_rosetta2? if Hardware::CPU.in_rosetta2?
odie <<~EOS odie <<~EOS
This invocation of Homebrew is being translated by Rosetta2 however it is Cannot install under Rosetta 2 in ARM default prefix (#{HOMEBREW_PREFIX})!
installed in the ARM default prefix (#{HOMEBREW_PREFIX})! Are you are using an To rerun under ARM use:
x86_64 build of your terminal emulator? All invocations of this Homebrew
installation must be native arm64.
Use:
arch -arm64 brew install ... arch -arm64 brew install ...
To install under x86_64, install Homebrew into #{HOMEBREW_DEFAULT_PREFIX}.
to invoke Homebrew natively. Alternatively, if indeed you want x86_64 packages,
setup a separate x86_64 Homebrew installation and invoke that one.
EOS EOS
else else
odie "Cannot install on Intel processor in ARM default prefix (#{HOMEBREW_PREFIX})!" odie "Cannot install on Intel processor in ARM default prefix (#{HOMEBREW_PREFIX})!"