This happened to me after re-installing my OS and using a fresh install of rbenv. I cloned my application repository and went to execute a bundle install
and received the following error:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
What? rbenv should not be prompting me to use sudo, it was trying to install gems on the system version of ruby. Running rbenv local
returned 2.1.4
as expected, what the heck was going on?
gem list | grep bundler
returned nothing – doh! I didn’t have bundler installed via rbenv so it was falling back to the system ruby. I was not expecting it to use a different version of bundler.
1 2 3 4 |
|
And all was right with the world again!