[Mac OS X – Sierra] – Ruby/brew – bad interpreter error

nach Update auf Mac OS X Sierra

Fehlermeldung beim Aufruf von brew update

Mac:~ user$ brew update
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: 
bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0

Fix:

cd /usr/local
git pull -q origin refs/heads/master:refs/remotes/origin/master
sudo chflags norestricted /usr/local && sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
brew update

Updated 1 tap (homebrew/core).
==> Updated Formulae
aws-sdk-cpp      awscli           flow             jemalloc         libmikmod        mikmod           node             teleport         terragrunt       unbound          wireguard-tools
0 0 votes
Article Rating

You may also like...

Abonnieren
Benachrichtige mich bei
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x