On a clean Mac OS X "Snow Leopard" install, I have a problem with RVM: It sets the Ruby path correctly but doesn't set the gem path. When I start a Rails server it mixes versions which doesn't work.
To illustrate:
$ rvm system
$ which ruby
/usr/bin/ruby
$ which rails
/usr/bin/rails
$ rvm use 1.9.2-head
Using /Users/m/.rvm/gems/ruby-1.9.2-head
$ rvm gem listLOCAL GEMS
[...]
rails (3.0.7)
[...]$ which ruby
/Users/m/.rvm/rubies/ruby-1.9.2-head/bin/ruby
$ which rails
/usr/bin/rails$ echo $GEM_PATH
/Users/m/.rvm/gems/ruby-1.9.2-p180:/Users/m/.rvm/gems/ruby-1.9.2-p180@global$ echo $PATH
/Users/m/.rvm/gems/ruby-1.9.2-p180/bin:/Users/m/.rvm/gems/ruby-1.9.2p180@global/bin:/Users/m/.rvm/rubies/ruby-1.9.2p180/bin:/Users/m/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Any ideas what might be wrong?
rvm 1.9.2
. As far as I remember, I have installed bundler withgem install
and it has been installed in correct location:~/.rvm/gems/ruby-1.9.2-p290/bin/
;which bundle
points to this location. All remaining gems were installed with bundler and they are placed in~/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/
. This location is not present in $GEM_PATH nor its bin is present in $PATH. Please check this location, maybe you'll find your gems there. BTWbundle exec
works for me. – skalee