Skip to content

Instantly share code, notes, and snippets.

@robmiller
Last active February 19, 2021 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robmiller/9f7e3852785305c4ee1c67c892ff3bc6 to your computer and use it in GitHub Desktop.
Save robmiller/9f7e3852785305c4ee1c67c892ff3bc6 to your computer and use it in GitHub Desktop.
Stuff that happened to me when migrating to an M1 Mac
# The macOS command line tools broke, so I had to reinstall them
# (I kept getting the error "Your CLT does not support macOS 11."
# when compiling packages from Homebrew.)
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
# Homebrew had old x86 libraries and object files and god knows what
# else hanging around, which caused several packages to break during install
# (including Ruby) so I reinstalled Homebrew and all my packages
brew list > ~/homebrew.tmp.txt
rm -rf /usr/local/{Homebrew,bin,etc,include,lib,libexec,opt,sbin,share,var}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
for package in $(cat ~/homebrew.tmp.txt); do brew install "$package"; done
# I recompiled Ruby once I had iTerm + my shell running on arm
rvm reinstall 3.0.0
# The system default Python is really old, so I installed pyenv + 3.9.1
brew install pyenv
pyenv install 3.9.1
pyenv global 3.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment