问题描述
我正在查看安装 Ruby on Rails · Mac OS X Yosemite",并且在说明中它说要更新您的操作系统,我真的不想这样做,因为我的电脑已经变旧了.
I'm looking at "Install Ruby on Rails · Mac OS X Yosemite", and in the instructions it says to update your OS which I don't really want to do because my computer is getting old.
我还发现了如何将 Ruby 更新为1.9.x 在 Mac 上?".据我所知,我没有 RVM,我害怕再次安装,以防我的系统要求仍然不够好.
I also found "How to update Ruby to 1.9.x on Mac?". As far as I can tell, I don't have RVM and I'm afraid of yet another install, in case my system requirements still aren't good enough.
最终,我正在尝试更新 Jekyll,但我需要先更新我的系统.我需要 Ruby 1.9.3 或更高版本.如何在 Mac 上将 Ruby 更新到 1.9.x?"工作?我正在运行 Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]'.
Ultimately, I'm trying to update Jekyll, but I need to update my system a little bit first. I need Ruby 1.9.3 or later. Will "How to update Ruby to 1.9.x on Mac?" work? I'm running Ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]'.
我确实安装了 RVM.对于将来找到此页面的人,我遇到了以下问题/帮助页面:
I did end up getting RVM installed. For those who find this page in the future, I ran into these issues/help pages:
- 如何解决gpg:未找到命令"RVM 安装过程中出错?
- OS X Mavericks 安装 rvm 警告
* 警告:你有'~/.profile'文件...
- RVM 安装缺少 $PATH
* 警告:以上文件包含
PATH=没有
$PATHinside
- How to resolve "gpg: command not found" error during RVM installation?
- OS X Mavericks install rvm WARNING
* WARNING: You have '~/.profile' file...
- RVM installation missing $PATH
* WARNING: Above files contains
PATH=with no
$PATHinside
推荐答案
我建议你使用 RVM 来安装 Ruby.
I suggest that you use RVM to install Ruby.
curl -sSL https://get.rvm.io | bash -s stable --ruby
您需要重新启动终端才能运行 rvm:
You need to restart the terminal in order to run rvm:
rvm install 2.2
rvm use 2.2 --default
这篇关于我可以在 OS X v10.6.8 上升级到当前版本的 Ruby (2.2.3) 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!