Getting Started #6348
Unanswered
graylan
asked this question in
Getting started
Getting Started
#6348
Replies: 2 comments
-
If you have installed -export PATH="/usr/local/opt/gettext/bin:$PATH"
+export PATH="/opt/homebrew/opt/gettext/bin:$PATH" |
Beta Was this translation helpful? Give feedback.
0 replies
-
Following on from @daeho-ro's comment:-
Are you in your home directory when you run this? It's always safer to
This is sufficient.
This is unnecessary, as PATH is set properly by the previous line, along with some other Homebrew environment variables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
I migrated from an ancient Intel Mac to a new M4 Mac. I know just enough about Bash to be dangerous to myself. When trying to brew install a new package, I get the error below.
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
brew bundle dump
However, if I run
eval "$(/opt/homebrew/bin/brew shellenv)"
beforehand, things work properly until I close the window. I had tried deleting the original install and creating a new install, but I must not have done it correctly. I suspect the error is in my PATH variable (see below)?$ more .bash_profile
export PATH="/usr/local/opt/gettext/bin:$PATH"
$ more .bashrc
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH=/opt/homebrew/bin:$PATH
What should the export PATH be in .bash_profile and/or .bashrc? Or is the issue altogether different? Thank you for helping me understand.
Beta Was this translation helpful? Give feedback.
All reactions