如何在OS X 10.8 Mountain Lion上安装Ruby 1.8.7

如何在OS X 10.8 Mountain Lion上安装Ruby 1.8.7,ruby,osx-mountain-lion,homebrew,ruby-1.8.7,Ruby,Osx Mountain Lion,Homebrew,Ruby 1.8.7,我一直在寻找实现这一点的最佳方法,并找到了一种比同时安装tcl和tk更简单的方法 # Install homebrew ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" # Install command line tools for Xcode -- requires free Apple ID http://developer.apple.com/downloads # Install requirements brew u

我一直在寻找实现这一点的最佳方法,并找到了一种比同时安装tcl和tk更简单的方法

# Install homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

# Install command line tools for Xcode -- requires free Apple ID
http://developer.apple.com/downloads

# Install requirements
brew update
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42 rbenv ruby-build

# rbenv method
CONFIGURE_OPTS="--without-tcl --without-tk" rbenv install 1.8.7-p370

# rvm method
rvm install 1.8.7 --without-tcl --without-tk