I ran this in Terminal:
brew install libsndfile
Which gave this error:
/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
So in Terminal, I ran steps 1-5 as suggested in this answer:
1. open terminal
2. $ cd /usr/local/Library/Homebrew
3. $ git reset --hard
4. $ git clean -df
5. $ brew update
And this is a screenshot of the output:
How can I get the command brew install libsndfile
to work?