0

I am working on Windows 10. I successfully installed Ruby, MSYS2 and DevKit, but after trying to run the following command:

bundle install

it throws me an error

An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.

I tried the solution with

gem install json -v '1.8.1'

but it still doesn't work for me. Does anybody knows how i can fix the error?

Kawaki
  • 1
  • 3
  • did you try `bundle update` then `bundle install`? – Amr Adel May 13 '18 at 12:33
  • @AmrAdel No, i will try, hope it works ;) – Kawaki May 13 '18 at 12:44
  • What errors do you get from the Json geminstall? – Joe May 13 '18 at 13:01
  • Json 1.8 is an old gem you may have trouble to install on a recent Ruby version. Please see this similar case here https://stackoverflow.com/questions/50307653/bundle-install-error-json-gem#comment87639105_50307653 – Maxence May 13 '18 at 15:44
  • @AmrAdel Yeah i tried first bundle update, but then i got error for do_sqlite3 gem – Kawaki May 13 '18 at 15:47
  • @Joe i fixed the json gem error, but now i got the error for some do_sqlite3 gem – Kawaki May 13 '18 at 15:47
  • @Maxence i fixed the json gem error, but now i got the error for some do_sqlite3 gem – Kawaki May 13 '18 at 15:48
  • I doubt the problem is ruby version or something, Sometimes I remove what is inside GEMFILE.lock and run bundle install again, could u try this? – Amr Adel May 13 '18 at 16:05
  • @AmrAdel, i tried everything and still got this do_sqlite3 error. I also downloaded SQLite3 and place it in Ruby directory, but still nothing. Here is the image of an error: https://imgur.com/a/kbENwvm Please check it out. It happens when i try to run a "bundle update" command. – Kawaki May 13 '18 at 16:26
  • Add the errors you're getting to your post. – Joe May 13 '18 at 19:58

0 Answers0