MAC Upgrade 10.10 Yosemite System Brew Error Unable to use solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.