0

I'm running bundle install in a VM for an application in Ruby 1.9.3, Rails 3.0.20, Bundler 1.6.2, but it gives me this error about the gemfile.lock

I guess that Bundler is using the global gems, but I need it to use strictly the versions from the gemfile.

I've tried with the few solutions that I've found, but it's the same. If somebody has any suggestion about it.

dianaalco
  • 1
  • 2
  • Regenerate Gemfile.lock. It seems like it was out of sync with the Gemfile. – Muhammad Yaseen Nov 01 '17 at 09:30
  • I tried to regenerate it, but it's still the same. When I run it in my local machine, it works, but it doesn't happen the same in the VM, which it's weird, because my local machine and the VMs share the project's folder. – dianaalco Nov 01 '17 at 09:39
  • "If somebody has any suggestion about"--The sentence is not completed. – sawa Nov 01 '17 at 09:39
  • Well, I've completed it now. – dianaalco Nov 01 '17 at 09:42
  • Permissions issue? How have you installed ruby? Via `sudo`? Don't; use `rbenv` or `rvm` and install it as the local user. – Tom Lord Nov 01 '17 at 09:49
  • Yes, I use rvm and I've configured the permissions for the VMs. I have different versions of Ruby and it seems that Bundler is installing global gems, not only the ones from the gemfile, even when I set Ruby 1.9.3 with rvm. I don't know how to specify Bundler that only install those ones. – dianaalco Nov 01 '17 at 10:06

0 Answers0