Abdullah Al Mahfuj
Abdullah Al Mahfuj

Reputation: 31

Warning: No available formula with the name "gcc". on mac(intel)

error message

I want to use gcc compiler instead apple clang on my mac(intel).

But this error is shown.. " Warning: No available formula with the name "gcc" "

I did, 1. installed homebrew 2. brew install gcc

But this error is shown.. " Warning: No available formula with the name "gcc" "

Upvotes: 1

Views: 594

Answers (1)

Abdullah Al Mahfuj
Abdullah Al Mahfuj

Reputation: 31

Thank you everyone who gave feedback to this question.

Solution I have done:

  1. running brew doctor , it recommended me to run three commands:

2.rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"

  1. brew tap homebrew/core

  2. and git -C $(brew --repo homebrew/core) checkout master

  3. Then I run brew install gcc again.

Now it's working.

Upvotes: 1

Related Questions