Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Updated brew.rb for Yosemite (10.10) #29796
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 should prevent the issue above when doing a OS upgrade.
You have to replace this line in more places than just that one. It's in at least 3 more files where I had to switch it as well. Also since homebrew doesn't support 2.0.0 I'm not sure how this will work. This is the
So the two routes this can take would be for Homebrew to use Current or to hardcode everything to 2.0. Given we go with the Current route...
The issue occurs when we get to the lines that look like this:
We would have to tack on 2.0.0 to replace the 1.8 at the end to make it look like:
Unless there is any other suggestions, I am at a loss at what to do to make this not occur in the future.
If we hardcode it to 2.0, this all becomes an easy fix as far as this is concerned. For Homebrew to support 2.0 is another issue.
okay, i by no way advocating this method for working around ruby 2.0 in Yosemite, but if you really are trying to get it working, I managed to install a couple packages by doing this.
navigate to /usr/local/Library/ and open the hierarchy in the text editor of your choice.
then replace all the following in all the files.
again. super loose and sketchy, but it got stuff installing for me.