找不到宝石轨道(> = 0.a)(Gem :: GemNotFoundException) [英] can't find gem railties (>= 0.a) (Gem::GemNotFoundException)

查看:103
本文介绍了找不到宝石轨道(> = 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.即使我一直试图通过rbenv设置ruby 2.3.0,我当前的Ruby版本是ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin15].

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 :)

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

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