您的位置:首页 > 编程语言 > Ruby

Mac系统升级ruby的一些命令

2012-03-30 14:54 363 查看
1.Check your ruby version

ruby -v

2.Install rvm

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
3.Install homedrew

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
4.Reload your shell environment:

source ~/.bash_profile

5.Find the requirements (follow the instructions):

rvm requirements

6.Verify RVM

type rvm | head -n1

7.install
autoconf


brew install automake


8.Install ruby:

rvm install 1.9.3 (or rvm install 1.9.3 --with-gcc=clang)

9.Verify ruby version

ruby -v


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: