Skip to content

Instantly share code, notes, and snippets.

@andhapp
Forked from chrisb/gist:4d6a09c6cc1ca2e1b14e
Created June 8, 2014 16:49
Show Gist options
  • Select an option

  • Save andhapp/0d8d3ee93fd79aefcfd8 to your computer and use it in GitHub Desktop.

Select an option

Save andhapp/0d8d3ee93fd79aefcfd8 to your computer and use it in GitHub Desktop.

OS X 10.10 Guide

Here's what I did to get things working.

1. Install Xcode 6

Self explanatory.

2. Install the Command Line Tools (CLT)

Hit it: https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#

Make sure you get the package for 10.10.

3. Install Homebrew

Copy/pasted from the site:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

4. Update the brew Script

Open up /usr/local/bin/brew with your favorite editor.

I had to comment out the brew system detection, so that the last 6-7 lines looked like this:

#BREW_SYSTEM=$(uname -s | tr "[:upper:]" "[:lower:]")
#if [ "$BREW_SYSTEM" = "darwin" ]
#then
#    exec "$BREW_LIBRARY_DIRECTORY/brew.rb" "$@"
#else
    exec ruby -W0 "$BREW_LIBRARY_DIRECTORY/brew.rb" "$@"
#fi

5. Point Ruby 1.8 to Ruby 2.0

It looks like Homebrew somehow depends on Ruby 1.8 despite even Mavericks shipping with version 2. So until Homebrew fixes this, we'll symlink our system version of Ruby to the one Homebrew is looking for (in Versions/1.8)

Create the folder:

sudo mkdir -p /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin

Then symlink the binary:

sudo ln -s /usr/bin/ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

6. Hack away!

My subsequent brew install commands seemed to work fine (ruby-build, redis, etc...)

Improve this Gist!

Leave a comment if something didn't work right for you.

@JAStanton
Copy link

the CLT dmg is getting access denied for me. Did they take it down?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment