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.

Revisions

  1. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,8 @@ Yep, over at: https://developer.apple.com

    ### 2. Install the Command Line Tools (CLT)

    Hit it: https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#
    http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__june_2014/command_line_tools_for_osx_10_10_june_2014.dmg (thanks @thomaslindstrom)

    Make sure you get the package for 10.10.

    ### 3. Install Homebrew

  2. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,7 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke
    #fi
    ```

    ### 5. Point Ruby 1.8 to Ruby 2.0
    ### 5. Point Ruby 1.8 at Ruby 2.0

    It looks like Homebrew somehow depends on Ruby being in `Versions/1.8` (though even Mavericks ships with 2.0). Until Homebrew addresses this, we'll symlink our system version of Ruby to the one Homebrew looks for.

  3. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke

    ### 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`)
    It looks like Homebrew somehow depends on Ruby being in `Versions/1.8` (though even Mavericks ships with 2.0). Until Homebrew addresses this, we'll symlink our system version of Ruby to the one Homebrew looks for.

    Create the folder:

  4. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ Here's what I did to get things working.

    ### 1. Install Xcode 6

    Self explanatory.
    Yep, over at: https://developer.apple.com

    ### 2. Install the Command Line Tools (CLT)

  5. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -60,4 +60,4 @@ You'll probably need to install Bundler with `gem install bundler` if you haven'

    ## Improve this Gist!

    Leave a comment if something didn't work right for you.
    Leave a comment if something didn't work.
  6. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -54,7 +54,7 @@ sudo ln -s /usr/bin/ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/

    ### 6. Hack away!

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

    You'll probably need to install Bundler with `gem install bundler` if you haven't already.

  7. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -56,6 +56,8 @@ sudo ln -s /usr/bin/ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/

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

    You'll probably need to install Bundler with `gem install bundler` if you haven't already.

    ## Improve this Gist!

    Leave a comment if something didn't work right for you.
  8. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,7 +38,7 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke

    ### 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`)_
    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:

  9. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -38,14 +38,14 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke

    ### 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:

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

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

    Then symlink the binary:

    ```sh
  10. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,7 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke
    #fi
    ```

    ### 5. Point Ruby 2.0 to Ruby 1.8 (I know, I know..)
    ### 5. Point Ruby 1.8 to Ruby 2.0

    Create the folder:

  11. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,8 @@ Make sure you get the package for 10.10.

    ### 3. Install Homebrew

    Copy/pasted from the site:

    ```sh
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```
  12. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,8 @@ Create the folder:
    sudo mkdir -p /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin
    ```

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

    Then symlink the binary:

    ```sh
  13. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 11 additions and 5 deletions.
    16 changes: 11 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -14,15 +14,17 @@ Make sure you get the package for 10.10.

    ### 3. Install Homebrew

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

    ### 4. Update the `brew` Script

    Open up `/usr/local/bin/brew`
    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:

    ```
    ```sh
    #BREW_SYSTEM=$(uname -s | tr "[:upper:]" "[:lower:]")
    #if [ "$BREW_SYSTEM" = "darwin" ]
    #then
    @@ -36,11 +38,15 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke

    Create the folder:

    `sudo mkdir -p /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin`
    ```sh
    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`
    ```sh
    sudo ln -s /usr/bin/ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
    ```

    ### 6. Hack away!

  14. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,21 +2,21 @@

    Here's what I did to get things working.

    ### Install Xcode 6
    ### 1. Install Xcode 6

    Self explanatory.

    ### Install the Command Line Tools (CLT)
    ### 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.

    ### Install Homebrew
    ### 3. Install Homebrew

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

    ### Update the `brew` Script
    ### 4. Update the `brew` Script

    Open up `/usr/local/bin/brew`

    @@ -32,7 +32,7 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke
    #fi
    ```

    ### Point Ruby 2.0 to Ruby 1.8 (I know, I know..)
    ### 5. Point Ruby 2.0 to Ruby 1.8 (I know, I know..)

    Create the folder:

    @@ -42,10 +42,10 @@ Then symlink the binary:

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

    ### Hack away!
    ### 6. Hack away!

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

    ### Improve this Gist!
    ## Improve this Gist!

    Leave a comment if something didn't work right for you.
  15. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 11 additions and 3 deletions.
    14 changes: 11 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Make sure you get the package for 10.10.

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

    ## Update the `brew` Script
    ### Update the `brew` Script

    Open up `/usr/local/bin/brew`

    @@ -32,12 +32,20 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke
    #fi
    ```

    ## Point Ruby 2.0 to Ruby 1.8 (I know, I know..)
    ### Point Ruby 2.0 to Ruby 1.8 (I know, I know..)

    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`
    `sudo ln -s /usr/bin/ruby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby`

    ### 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.
  16. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -32,4 +32,12 @@ I had to comment out the brew system detection, so that the last 6-7 lines looke
    #fi
    ```

    ## Point Ruby 2.0 to Ruby 1.8 (I know, I know..)
    ## Point Ruby 2.0 to Ruby 1.8 (I know, I know..)

    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`
  17. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,9 @@ Make sure you get the package for 10.10.

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

    ## Update `/usr/local/bin/brew`
    ## Update the `brew` Script

    Open up `/usr/local/bin/brew`

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

  18. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -12,9 +12,9 @@ Hit it: https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#

    Make sure you get the package for 10.10.

    ### Install homebrew the normal way
    ### Install Homebrew

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

    ## Update `/usr/local/bin/brew`

  19. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@ Self explanatory.

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

    Make sure you get the package for 10.10.

    ### Install homebrew the normal way

    (That is, afte
  20. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Homebrew, Ruby, and Rails on OS X 10.10
    # OS X 10.10 Guide

    Here's what I did to get things working.

  21. @chrisb chrisb revised this gist Jun 3, 2014. 1 changed file with 16 additions and 0 deletions.
    16 changes: 16 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,19 @@
    # Homebrew, Ruby, and Rails on OS X 10.10

    Here's what I did to get things working.

    ### Install Xcode 6

    Self explanatory.

    ### Install the Command Line Tools (CLT)

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

    ### Install homebrew the normal way

    (That is, afte

    ## Update `/usr/local/bin/brew`

    I had to comment out the brew system detection, so that the last 6-7 lines looked like this:
  22. @chrisb chrisb renamed this gist Jun 3, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  23. @chrisb chrisb created this gist Jun 3, 2014.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ## Update `/usr/local/bin/brew`

    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
    ```

    ## Point Ruby 2.0 to Ruby 1.8 (I know, I know..)