Andrey M. Andrey M. - 6 months ago 31
Ruby Question

Ruby version incompatibility when installing via bundler

I want to install ruby on rails app via bundler with:

bundle install

It gets me following error:

Your Ruby version is 2.0.0, but your Gemfile specified 2.3.0

However if i run ruby -v i get following output:

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]


Your Ruby version is okay, I think the problem is with bundle command. You call bundle from your system preinstalled old Ruby. Run which bundle to locate it. I would recommend to switch to old Ruby, then uninstall gem bundler, then switch to new Ruby and reinstall gem bundler.

It's unclear which Ruby version manager you're using, so the basic command flow looks like this:

gem uninstall bundler # this command may require sudo
gem install bundler

Try switching Ruby versions inbetween commands, if this doesn't work.