11

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

while doing bin/sbapp new APP_SLUG I got the error

/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

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 Answers 3

24

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

1
  • That worked for me (while trying to install compass, and getting a similar error to the above).
    – Kzqai
    Oct 4, 2016 at 2:07
0

You should try to do a

bundle install 

first and then run as

bundle exec bin/sbapp new APP_SLUG
4
  • Thanks . I had already tried this but for bundle install I need to have rake so I tried gem install rake , but that gives me the same : cannot load such file -- json/pure (LoadError) Dec 12, 2012 at 17:47
  • 6
    had the same problem and this is definitly not the solution... gem install json_pure is the right way to get this fixed!
    – bMalum
    Jul 17, 2014 at 9:58
  • This doesn't even work on a centOS system, the comment is better than the answer, use gem install json_pure to solve this.
    – DrCord
    Mar 25, 2016 at 20:09
  • gem install --no-ri --no-rdoc json_pure is enough.
    – Rockallite
    Feb 22, 2017 at 8:04
0

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

vim Gemfile

edit json version to '1.8.1'

gem install bundler
bundle install

and this work!

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.