'Cannot install in Homebrew on Intel processor in ARM default prefix' on an intel based macbook

Viewed 6232

I had brew working but with last brew update, this error started to come up:

Cannot install in Homebrew on Intel processor in ARM default prefix

1 Answers

The issue was due to where the brew installation was located: /opt/homebrew, which I guess had been configured in latest brew update as 'prefix' for 'ARM' type installations.

To resolve this, I moved the complete installation to '/usr/local/homebrew', which resolved the issue for me.

Though this rendered some of the formulae as stale (android-toolkit).

brew doctor gave a warning about the brew prefix, solving which resolved the stated error.

Related