Wednesday, April 8, 2015

[OSX - Yosemite 10.10.x] How to fix brew after Yosemite upgrade????

  After Yosemite upgrade did you see this message when you run brew??

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

  If you saw that al least once. Here is solution.


Step 01. Go do Versions Directory

cd /System/Library/Frameworks/Ruby.framework/Versions
sudo ln -s Current 1.8
brew update

After do this, There is new Current directory.


Step 02.  Delete 1.8 directory

sudo rm 1.8

And you can see 2.0 and Current directory only.


Now you can use brew clearly :)

No comments:

Post a Comment