Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew installs not appearing in /usr/local/bin

I've installed a package using brew to a new Mac, imagemagick, and carried over a number of utilities that look for convert, a part of imagemagick in /usr/local/bin. These utilities can't find convert, using which, it's in /opt/homebrew/bin/convert.

In addition, I'm trying to get vscode to work from a command line. It's set up but running code gives the error ./MacOS/Electron: No such file or directory. Electron has been installed using brew but can only be found, again, in /opt/homebrew/bin/convert.

Any thoughts?

like image 736
Kim Aldis Avatar asked Dec 11 '25 22:12

Kim Aldis


1 Answers

Since Homebrew v3.0.0, the default prefix is different depending on the chip architecture. The defaults are the following:

  • /opt/homebrew on Apple silicon
  • /usr/local on Intel

The main reason for this change was for Rosetta 2 compatibility.

It appears that you're trying to transition from an Intel machine to an Apple Silicon one. The simplest way to do this might be to reinstall all the formulae again via brew bundle. This shouldn't take very long thanks to the use of pre-built binaries.

Alternatively, you can always manually add /opt/homebrew/bin to your PATH (/usr/local is already in path).

like image 193
Haren S Avatar answered Dec 14 '25 19:12

Haren S