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

9

我一直在寻找最佳方法来完成这个任务,发现了一种比安装tcl和tk更容易的方法。

1个回答

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接