I feel like this is a super beginner question with an obvious answer but I'm missing it.
I'm installing a Rails project that includes a gem requiring me to use a version of Ruby that is 2.2.2 or earlier. Since my current system is set up with a newer version of Ruby, when I run bundle install
, it fails because one of the gems can't be installed with the newest version of Ruby.
So, I set my system to use ruby 2.2.2 with rvm, rvm use ruby-2.2.2
.
I then run bundle install
and get zsh: command not found: bundle
. Why is this? All my other commands work and I can install the problem gem individually with gem install
.
What am I missing?
You probably had Bundler installed for the version of ruby you've been using until this point. However, Bundler is not installed on versions of ruby provided by RVM by default, so for after you switch to ruby-2.2.2, install Bundler for that ruby:
gem install bundler
Then try running bundle install
again.