Here's what I did to get things working.
Yep, over at: https://developer.apple.com
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)
Copy/pasted from the site:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
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
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:
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
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.
Leave a comment if something didn't work.
I keep getting this error:
/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ../../../Cellar/rbenv-gem-rehash/1.0.0/etc/rbenv.d/exec: No such file or directory
whenever I try to run something likeruby -v
. It only occurs when I haveif which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
in my.bash_profile
. I installed with the instructions above and cannot figure this out! Any help is appreciated. Edit: I fixed this issue by doingbrew install rbenv-gem-rehash
.