Skip to content
Home » Getting a warning when installing homebrew on macOS Big Sur

Getting a warning when installing homebrew on macOS Big Sur

To solve Getting a warning when installing homebrew on macOS Big Sur error follow below methods.

ERROR LOG

homebrew on macOS Big Sur

How to solve Getting a warning when installing homebrew on macOS Big Sur ?

Refer the given methods to solve the issue.

Method 1:

The issue is highlighted in the warning: Warning: The directory /opt/homebrew/bin is not in your PATH. It appears to be the place where the binaries of hombrew are stored. To resolve, you can perform the following:

Edit your ~/.zshrc or ~/.bashrc with at the end of file :

export PATH=/opt/homebrew/bin:$PATH

tap source ~/.zshrc in your terminal or restart it.

Method 2 :

  • Check to see if you’ve already Install the Xcode development environment. In your terminal, type the following command: /usr/bin/xcodebuild -version
  • It will print the sample output shown below. Version 12C33 of Xcode 12.3
  • Now Launch Xcode. Choose your preferences Choose the location tab. Select your Xcode version from the dropdown menu in the Command Line Tool.
  • Run the following command on a terminal: /bin/bash -c $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
  • Note: If you have an M1 Chip Mac, run the following command, then close and reopen the terminal.

echo “export PATH=/opt/homebrew/bin:$PATH ~/.zshrc

Hope the above solution works.

Also read :

AttributeError: Can’t get attribute ‘new_block’ on module Spark
Python SyntaxError: invalid syntax to repo init in the AOSP code