(There may have been a better workaround for this but this worked so I stuck with it.) In order to get it to override the existing sed command on my machine I needed to point directly to it in my PATH which meant adding export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" to my. I had been using gnu-sed, installed with brew. zshrc file over from my Intel Mac onto my M1. The first problem I ran into came after pulling my old. They are pretty specific to my set up, but hopefully a quick description of each one will help you track down similar issues if you encounter them. I encountered a couple issues with this new installation, both related to the fact that Homebrew had moved from /usr/local/bin. After that I recommend going over any config files or profile files you have that might contain any references to Homebrew or Homebrew packages you have installed. This may take a while if you have a lot of packages so probably best to have an actual beer nearby. You can tell brew to install everything with brew bundle install -file /path/to/Brewfile. Once this is done, you’ll need to copy over your Brewfile from your Intel Mac. Most importantly, it adds /opt/homebrew/bin to your path: export PATH="/opt/homebrew/bin:/opt/homebrew/sbin$". It creates a series of environment variables, including HOMEBREW_CELLAR="/opt/homebrew/Cellar" and HOMEBREW_REPOSITORY="/opt/homebrew" and several others. Now this command will run each time you start a new shell instance. The easiest way to do that is to follow the instructions Homebrew spits out after installation.Īdd eval "$(/opt/homebrew/bin/brew shellenv)"' to your. This new location is not part of your default PATH, so you’ll need to add it. Remember, Homebrew is now going to install packages in /op/homebrew/bin. = > Next steps: - Run these two commands in your terminal to add Homebrew to your PATH: echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' > /Users/joshalletto/.zprofile eval " $( /opt/homebrew/bin/brew shellenv ) " - Run brew help to get started - Further documentation: Here’s part of mine to give you an idea of what it looks like. This will create a Brewfile, which is just a list of all packages that have been installed with brew. Th first thing you’ll want to do is run brew bundle dump on your Intel Mac. No need to worry though, reinstalling everything on M1 is easy, it just may take a bit of time. But if you’re trying to migrate from an Intel Mac you won’t be able to just move packages that were once in /usr/local over to /opt/homebrew. If you’re coming to M1 Mac fresh, without any old projects or profiles, you probably won’t notice Homebrew will work as it always has. So in the long run this is a positive change, but not without a few growing pains along the way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |