3 Create a launcher app with the Script Editor. For me ~13mins.Īfter that your issues with P圜harm, git, brew and likely other tools will be resolved.Īfter you have that resolved - which was causing me issue when trying to install brew - do what the top answer here recommends: which in a summary is run the bash install of brew and make sure it is in your PATH env variable properly. Then agree to it and it should download after a couple of minutes. Then install the command line tools (CLT) again: xcode-select -install Output xcode-select: error: unable to get active developer directory, use `sudo xcode-select -switch path/to/Xcode.app` to set one (or see `man xcode-select`) So do ( source): sudo rm -rf /Library/Developer/CommandLineToolsĬheck it uninstalled, you should get an output as follows: xcode-select -p What I suggest is to uninstall the command line tools (CLT) and re-install them the official way ( source). What I did is the following (solution from here): Then you have to fix your command line tools (CLT). If you are getting the intel chip error xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): tried: '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)). The installation was completed successfully, and threw out a hint which was same as the two command lines. I installed Homebrew to my new Macbook Pro (chip Apple M1 Pro). Has been accepted by the official team of Homebrew. Run these two commands in your terminal to add Homebrew to your PATH:Įcho 'eval "$(/opt/homebrew/bin/brew shellenv)"' > /Users/bohuang/.zprofileĮval "$(/opt/homebrew/bin/brew shellenv)" => Homebrew is run entirely by unpaid volunteers. No analytics data has been sent yet (nor will any be during this install run). Read the analytics documentation (and how to opt-out) here: => Homebrew has enabled anonymous aggregate formulae and cask analytics. Instructions on how to configure your shell for HomebrewĬan be found in the 'Next steps' section below. The complete returning on Terminal is Warning: /opt/homebrew/bin is not in your PATH. The answer given by Lena Bru and Camilo Lizarazo Olaya is the solution.Įspecially the last code block - Add Homebrew to your PATH in ~/.zprofile: Now do what ever you want to do using brew either install git or any other things which you want. On typing this you will get to know that home brew is now working!! So type paste this code in the terminal source ~/.zshrcĪfter this command run one more command on the terminal to check if the howebrew is working fine brew Now at the end of the line paste this - export PATH=/opt/homebrew/bin:$PATH zshrc file and click to edit with Text Editor option Now to access the hidden file press the button i.e.Īfter this locate the. zshrc is a hidden file as we created it using the terminal above Now in the finder app we will press button to open the home directory i.e.Īfter this finder will open the home directory To open home directory we will open the finder from the dock and make sure its the active application So Run the command to create this directory i.e. =>Now on the same terminal we will create the file. warning: /opt/homebrew/bin is not in your PATH It will show some warning for the path i.e. It will ask to click return button after some time so don't worry after successful installation the brew won't work as for M1 Chip MacBook air. Now in the terminal paste the script which was copied from the homebrew site Then open the terminal in the using the spotlight search by pressing the command + spacebar Or do: - Add Homebrew to your PATH in ~/.zprofile:Įcho 'eval $(/opt/homebrew/bin/brew shellenv)' > ~/.zprofileĬopy the script provided under Install Homebrew This works for me to path homebrew permanently.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |