With the fruit company released the latest system, want to early adopters of the students believe that already installed experience a bar, may individual students use brew when the error will be reported:
/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:/usr/local/library/brew.rb:undefined error: 0
So a small one to see whether these files exist or have problems, careful small compilation found when looking at Ruby found that the version is incorrect:
Ls-al/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby
It must have been the fruit company upgrading the system by the way the Ruby version also increased to 2.0, then we will change the brew in the file configuration, there are two files about brew:
/usr/local/bin/brew:/USR/LOCAL/LIBRARY/BREW.RB
Small series looked at the above two bash script, found that the first line of/USR/LOCAL/LIBRARY/BREW.RB in the death of the Ruby 1.8, then we can change here:
Vim/usr/local/library/brew.rb#!/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby-w0 Save exit
Try again is not brew or so good!
This article is from the "Linus" blog, make sure to keep this source http://wz102.blog.51cto.com/3588520/1566009
MAC Upgrade 10.10 Yosemite System Brew Error Unable to use solution