Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
0562d0c2
Commit
0562d0c2
authored
4 years ago
by
David Cowden
Browse files
Options
Downloads
Patches
Plain Diff
fixup: reword error message and remove pointless variable
parent
9b4fea60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/install.rb
+10
-5
10 additions, 5 deletions
Library/Homebrew/install.rb
with
10 additions
and
5 deletions
Library/Homebrew/install.rb
+
10
−
5
View file @
0562d0c2
...
...
@@ -33,14 +33,19 @@ module Homebrew
if
(
Hardware
::
CPU
.
intel?
||
Hardware
::
CPU
.
in_rosetta2?
)
&&
HOMEBREW_PREFIX
.
to_s
==
HOMEBREW_MACOS_ARM_DEFAULT_PREFIX
if
Hardware
::
CPU
.
in_rosetta2?
configuration
=
"under Rosetta 2"
odie
<<~
EOS
Cannot install in Homebrew
#{
configuration
}
in ARM default prefix (
#{
HOMEBREW_PREFIX
}
)!
Try `arch -arm64 brew install ...`
This invocation of Homebrew is being translated by Rosetta2 however it is
installed in the ARM default prefix (
#{
HOMEBREW_PREFIX
}
)! Are you are using an
x86_64 build of your terminal emulator? All invocations of this Homebrew
installation must be native arm64.
Use:
arch -arm64 brew install ...
to invoke Homebrew natively. Alternatively, if indeed you want x86_64 packages,
setup a separate x86_64 Homebrew installation and invoke that one.
EOS
else
configuration
=
"on Intel processor"
odie
"Cannot install in Homebrew
#{
configuration
}
in ARM default prefix (
#{
HOMEBREW_PREFIX
}
)!"
odie
"Cannot install on Intel processor in ARM default prefix (
#{
HOMEBREW_PREFIX
}
)!"
end
elsif
Hardware
::
CPU
.
arm?
&&
HOMEBREW_PREFIX
.
to_s
==
HOMEBREW_DEFAULT_PREFIX
odie
<<~
EOS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment