I have upgraded Ruby to version 2.4.0 in my Rails app, but when I try to bundle install, I face with the following error:
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before
json(1.8.3) is not compatible with ruby 2.4.0. Try using a newer version.
$ bundle update json
Related
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?
good day
Today starting to study ruby on rails I find this error when creating a new application
/Users/Manux/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-14/2.2.0-static/ffi-1.9.17/gem_make.out
An error occurred while installing ffi (1.9.17), and Bundler cannot
continue.
Make sure that gem install ffi -v '1.9.17' succeeds before bundling.
I use ruby-2.1.1 and rails 5.0.1
Hello I am trying set up ruby on rails on my pc. Everytime i do a bundle install, I receive this error
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that gem install json -v '1.8.3' succeeds before bundling.
I am trying to use ruby 2.2.3, This is my first experience using Ruby on my pc.
Some gems need to build some native C/C++ extensions. You should install DevKit. Here's the link. And then add it to your system environment's path variable.
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
My s/w version are:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
Rails -v 4.2.5
windows 10
gem -v 2.4.5.1
Bundler 1.5.0 has a bug where it doesn't recognize default gems as referenced here.
The solution was to update to bundler 1.5.1 using gem install bundler -v '= 1.5.1'
I don't know much about Windows but you could try to install this GMP package. As suggested on the json Github issues page, people on linux should install the package below:
sudo apt-get install libgmp3-dev
And what it seems is that package for Windows has a similar dll which could resolve your problem.
There are known issues with the gem json 1.8.3 and ruby 2.2.3 listed in thoses issues #259 and #229
An error occurred while installing json (1.7.6), and Bundler cannot continue.
Make sure that gem install json -v '1.7.6' succeeds before bundling.
Might be your existing Ruby version does not support the gem. Use the gems that support by your Ruby version. If yours Ruby version is higher than 2.1.0 then degrade it to 2.1.0 then it works fine.
You have to update your ruby installation . Which version it is ?
check it from terminal , try
ruby -v