brew: Unable to install packages with brew

brew config output

HOMEBREW_VERSION: 3.0.2-56-g485f73a ORIGIN: https://github.com/Homebrew/brew HEAD: 485f73a32eab3e95986bb5f10786645ef071b161 Last commit: 34 minutes ago Core tap ORIGIN: https://github.com/Homebrew/brew Core tap HEAD: 485f73a32eab3e95986bb5f10786645ef071b161 Core tap last commit: 34 minutes ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit kabylake Clang: 12.0 build 1200 Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.64.1 => /usr/bin/curl macOS: 11.2.1-x86_64 CLT: 12.4.0.0.1.1610135815 Xcode: 12.4

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don’t worry or file an issue; just ignore this. Thanks!

Warning: Suspicious https://github.com/Homebrew/homebrew-core git origin remote found. The current git origin is: https://github.com/Homebrew/brew

With a non-standard origin, Homebrew won’t update properly. You can solve this by setting the origin remote: git -C “/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core” remote set-url origin https://github.com/Homebrew/homebrew-core

Warning: “config” scripts exist outside your system or Homebrew directories. ./configure scripts often look for *-config scripts to determine if software packages are installed, and which additional flags to use when compiling and linking.

Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew-provided script of the same name. We found the following “config” scripts: /Users/rudransh/anaconda3/bin/icu-config /Users/rudransh/anaconda3/bin/krb5-config /Users/rudransh/anaconda3/bin/freetype-config /Users/rudransh/anaconda3/bin/xslt-config /Users/rudransh/anaconda3/bin/libpng16-config /Users/rudransh/anaconda3/bin/python3.7-config /Users/rudransh/anaconda3/bin/libpng-config /Users/rudransh/anaconda3/bin/xml2-config /Users/rudransh/anaconda3/bin/python3.7m-config /Users/rudransh/anaconda3/bin/python3-config /Users/rudransh/anaconda3/bin/curl-config /Users/rudransh/anaconda3/bin/ncursesw6-config /Users/rudransh/anaconda3/bin/pcre-config /Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config


  • The brew doctor above contains no “Warning” lines.

What were you trying to do (and why)?

I want to install gcc. I tried: brew install gcc

What happened (include all command output)?

Updating Homebrew… ==> Searching for similarly named formulae… Error: No similarly named formulae found. Error: No available formula or cask with the name “gcc”. ==> Searching for a previously deleted formula (in the last month)… Error: No previously deleted formula found. ==> Searching taps on GitHub… Error: No formulae found in taps.

What did you expect to happen?

gcc getting installed! I have tried so many things looking up at internet, but nothing worked!

Step-by-step reproduction instructions (by running brew commands)

brew install gcc

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

You can solve this by setting the origin remote: git -C “/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core” remote set-url origin https://github.com/Homebrew/homebrew-core

Please do this.