Skip to content

Instantly share code, notes, and snippets.

Last active November 24, 2023 11:27
  • Star 68 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa to your computer and use it in GitHub Desktop.
Install Native Homebrew on Apple Silicon M1
# We'll be installing Homebrew in the /opt directory.
cd /opt
# Create a directory for Homebrew. This requires root permissions.
sudo mkdir homebrew
# Make us the owner of the directory so that we no longer require root permissions.
sudo chown -R $(whoami) /opt/homebrew
# Download and unzip Homebrew. This command can be found at
curl -L | tar xz --strip 1 -C homebrew
# Add the Homebrew bin directory to the PATH. If you don't use zsh, you'll need to do this yourself.
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
Copy link

kamusis commented Jun 3, 2021

Thanks for this! It's great...except I get this ("No such file or directory") every time I do anything with brew, for example %brew doctor
% brew doctor
/opt/homebrew/bin/brew: line 11: cd: /usr/local/Homebrew/bin: No such file or directory
Your system is ready to brew.
Any thoughts? brew works fine (or does it?) but...that message!

do you have any "/usr/local/bin/brew" file exists? or maybe you tried to install brew into "/usr/local/" as in x86 arch, and you didn't remove them clearly?

Copy link

I can't install it please some can help me with this situation I want to run f-adsk20”. for get an activation code of AutoCAD please help me.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment