0
我在終端運行這個:無法安裝BREW
brew install libsndfile
這給了這個錯誤:
/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
所以在終端,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
這是一個輸出截圖:
我怎樣才能讓命令brew install libsndfile
工作?