Troubleshooting of homebrew errors after upgrading to Yosemite

Source: Internet
Author: User

The error message is as follows:

/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 23: /usr/local/Library/brew.rb: Undefined error: 0

The author explains as follows:

Mac OS X 10.10 (Yosemite) no longer ships with Ruby 1.8 (only 2.0 ). I have changed the brew. RB file to use the 'current' directory found in the ruby. framework folder. unless there is a specific reason to use 1.8, this shoshould prevent the issue abve when doing a OS upgrade.

I thought I could reinstall homebrew or upgrade Ruby to 2.0, But I didn't discuss it with them because someone directly posted a method. I passed the test and shared it:

cd /usr/local/Library/git branch –set-upstream-to=origin/master master# on branch mastergit pull

Of course, this method is to pull a brew from git again. Why is this method fast? If you try to reinstall brew, you will know that it is easier to pull the source code back to clear something.

Troubleshooting of homebrew errors after upgrading to Yosemite

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.