加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在任何来源中都找不到json-1.8.1(Bundler :: G

发布时间:2020-12-17 04:01:44 所属栏目:百科 来源:网络整理
导读:我正在运行以下堆栈: ruby?? 2.1.1p76(2014-02-24修订版45161)[x86_64-linux] RubyGems 2.2.2 Rails 4.1.0 Bundler版本1.6.2 在ubuntu上运行apache 我收到以下错误: Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound) 当我寻找json
我正在运行以下堆栈:

> ruby?? 2.1.1p76(2014-02-24修订版45161)[x86_64-linux]
> RubyGems 2.2.2
> Rails 4.1.0
> Bundler版本1.6.2

在ubuntu上运行apache

我收到以下错误:

Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound)

当我寻找json如下:

$gem list | grep json

json (1.8.1)
multi_json (1.9.2)

它存在但由于某种原因,来自Passenger的消息如下:

Ruby (Rack) application could not be started

Error message:
Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError

解决方法

对我来说,这个问题是由Spring(Rails快速加载器)没有获取Gem /路径变化引起的.我正在执行rails generate rspec:install并找不到json-1.8.1.

我可能执行了三十个不同的命令 – 其中任何一个都可能对最终解决方案产生影响 – 但最终执行bin / spring stop允许进一步的rails命令工作,因为他们使用更新的Gem-list重新启动Spring服务器.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读