Skip to content

Install script fails with brew: No such file or directory #4174

Discussion options

You must be logged in to vote

Sounds like your git repo isn't clean.

/opt/homebrew/Library/Homebrew/brew.sh: line 155: /opt/homebrew/bin/brew: No such file or directory

bin/brew should be maintained by git (https://github.com/Homebrew/brew/blob/master/bin/brew). If it is missing, then there is something wrong with the state of the git repo.


Try going to the repo directory and checking status, e.g.

cd /opt/homebrewgit status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

If output shows something other than above, then it will probably need to be manually fixed.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@infotexture
Comment options

@SMillerDev
Comment options

@gromgit
Comment options

@infotexture
Comment options

@infotexture
Comment options

Comment options

You must be logged in to vote
3 replies
@infotexture
Comment options

@JideijeEmeka
Comment options

@gromgit
Comment options

Answer selected by infotexture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants