Rails 服务器错误:Ruby 版本为 1.8.7,但您的 Gemfile 指定为 1.9.3 [英] Rails Server Error: Ruby version is 1.8.7, but your Gemfile specified 1.9.3

查看:46
本文介绍了Rails 服务器错误:Ruby 版本为 1.8.7,但您的 Gemfile 指定为 1.9.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我输入了一个现有的 ruby​​ 应用程序,然后输入:

I entered a existing ruby application, and type:

$ 导轨 s

想在这里启动 rails 服务器.但它说:

wanted to start rails server here. but it said:

您的 Ruby 版本是 1.8.7,但您的 Gemfile 指定的是 1.9.3

Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3

实际上,我有一个 1.8.7,但我删除了它.如果我这样做:

Actually, I had a 1.8.7, but I deleted it. And if I do:

$ ruby​​ -v

$ ruby -v

它说:ruby 1.9.3p286 (2012-10-12 修订版 37165) [x86_64-darwin11.4.2]

it said: ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.2]

所以我不知道如何修复它.你能帮我吗?

So I don't know how can I fix it. Can you give me a help?

推荐答案

如果您使用的是 rvm,请运行:

If you are using rvm, run this:

$ rvm use 1.9.3

这篇关于Rails 服务器错误:Ruby 版本为 1.8.7,但您的 Gemfile 指定为 1.9.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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