无法找到 gem railties (>= 0.a) (Gem::GemNotFoundException) [英] can't find gem railties (>= 0.a) (Gem::GemNotFoundException)

查看:43
本文介绍了无法找到 gem railties (>= 0.a) (Gem::GemNotFoundException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了其他一些问题,尝试了他们的建议,但没有一个对我有用.

I've seen a few other issues for this, tried their recommendations, none of them worked for me.

我已经使用 Rails 大约一年了,刚开始一个新的 Rails 项目,突然出现问题.我卸载并尝试重新安装所有 Ruby 和 Rails.Ruby 很好,但不是 Rails.

I've been using Rails for about a year, just started a new Rails project, and suddenly having issues. I uninstalled and tried reinstalling all of Ruby and Rails. Ruby is fine, but not Rails.

当我输入 rails s 时,我得到 can't find gem railties.我当前的 Ruby 版本是 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin15],尽管我一直在尝试通过 rbenv 设置 ruby​​ 2.3.0.

When I enter rails s, I get the can't find gem railties. My current Ruby version is ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin15], even though I've been trying to set ruby 2.3.0 through rbenv.

如果我尝试 rails -v 来查看我正在运行的版本,我会得到同样的错误.我使用的是 Mac OS X El Capitan 版本 10.11.6.

If I try rails -v to see what version I'm running, I get the same error. I'm using Mac OS X El Capitan version 10.11.6.

推荐答案

rvm osx-ssl-certs
rvm cleanup all
rvm reset

它对我有用!也许有些命令没用,我只是复述我的 shell 的历史:)

It works for me! Maybe some commands useless, I just retell the history of my shell :)

这篇关于无法找到 gem railties (>= 0.a) (Gem::GemNotFoundException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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