sstephenson/rbenv — Issue #145: rbenv mixes versions/$ruby gems with system gems
Author: dmacvicar
Created: 2011-11-16 15:35:35+00:00
State: open

I was testing rbenv as a substitute to rvm. My first problem is that rbenv is not creating an issolated environment.
This is annoying as bundler thinks the gem is installed but then rubygems will not find it.

> rbenv which rake
/space/rbenv/versions/1.8.7-p352/bin/rake

> bundle install
Using ffi (1.0.10)
Using rpm (2.0) from source at .
Using bundler (1.0.15)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

> bundle exec rake
Could not find ffi-1.0.10 in any of the sources
Run `bundle install` to install missing gems.

Bundler just told me it was installed!

> bundle show ffi
/usr/lib64/ruby/gems/1.8/gems/ffi-1.0.10

Uh oh, the system gem (installed in this case, with a Linux package)