我可以在 OS X v10.6.8 上升级到当前版本的 Ruby (2.2.3) 吗? [英] Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?

查看:18
本文介绍了我可以在 OS X v10.6.8 上升级到当前版本的 Ruby (2.2.3) 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看安装 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:

  • 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 containsPATH=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) 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆