Skip to content

Fail to run breeze on Apple Silicon #20351

@pingzh

Description

@pingzh

Describe the issue with documentation

When running ./breeze after installing brew install gnu-getopt coreutils, it still complains

ERROR: You are running breeze in OSX environment and you need to install gnu commands

Run 'brew install gnu-getopt coreutils'

The root cause is with Apple Silicon, the Homebrew prefix is changed to /opt/homebrew

I can find getopt under /opt/homebrew

❯ l /opt/homebrew/opt/gnu-getopt/bin
total 112
drwxr-xr-x   3 ping_zhang  admin    96B Aug 16 06:27 .
drwxr-xr-x  12 ping_zhang  admin   384B Dec 16 10:46 ..
-r-xr-xr-x   1 ping_zhang  admin    54K Aug 16 06:27 getopt

How to solve the problem

I think we need to use $(brew --prefix) to get the homebrew prefix

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions