用Ruby设置(无法加载这样的文件json / pure)

时间:2021-07-06 23:34:29

Hi I was working on an API https://developers.supportbee.com/platform/overview

嗨,我正在开发API https://developers.supportbee.com/platform/overview

while doing bin/sbapp new APP_SLUG I got the error

在做bin / sbapp新的APP_SLUG我得到了错误

/home/nitesh/.gem/ruby/1.9.1/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound)

after which I again tried gem install multi_json and then again got the error

之后我又尝试了gem install multi_json然后再次出错

Successfully installed multi_json-1.5.0
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- json/pure (LoadError)

3 个解决方案

#1


0  

You should try to do a

你应该尝试做一个

bundle install 

first and then run as

首先然后运行

bundle exec bin/sbapp new APP_SLUG

#2


23  

I got this error while installing rails. I solved it by running gem install json_pure and then running gem install rails again.

我在安装rails时遇到了这个错误。我通过运行gem install json_pure然后再次运行gem install rails解决了这个问题。

#3


0  

i'm using join 1.7.7 and have same error, so i fix by update json to version 1.8.1:

我正在使用join 1.7.7并且有相同的错误,所以我通过更新json修复到版本1.8.1:

vim Gemfile

edit json version to '1.8.1'

将json版本编辑为'1.8.1'

gem install bundler
bundle install

and this work!

这项工作!

#1


0  

You should try to do a

你应该尝试做一个

bundle install 

first and then run as

首先然后运行

bundle exec bin/sbapp new APP_SLUG

#2


23  

I got this error while installing rails. I solved it by running gem install json_pure and then running gem install rails again.

我在安装rails时遇到了这个错误。我通过运行gem install json_pure然后再次运行gem install rails解决了这个问题。

#3


0  

i'm using join 1.7.7 and have same error, so i fix by update json to version 1.8.1:

我正在使用join 1.7.7并且有相同的错误,所以我通过更新json修复到版本1.8.1:

vim Gemfile

edit json version to '1.8.1'

将json版本编辑为'1.8.1'

gem install bundler
bundle install

and this work!

这项工作!