RVM doesn't set correct gem path -


on clean os x snow leopard install, have problem rvm: sets ruby path correctly doesn't set gem path. when start rails server, mixes versions doesn't work.

to illustrate:

$ rvm system
$ ruby
/usr/bin/ruby
$ rails
/usr/bin/rails
$ rvm use 1.9.2-head
using /users/m/.rvm/gems/ruby-1.9.2-head
$ rvm gem list

local gems
[...]
rails (3.0.7)
[...]

$ ruby
/users/m/.rvm/rubies/ruby-1.9.2-head/bin/ruby
$ rails
/usr/bin/rails

any ideas might wrong?

some additional info:

$ 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

so after 1 1/2 days of torture, reading through @ least 50 post, , installing rvm / ruby / rails @ least 15 different times, able use rails in rvm install. last series of events did after installing rvm , ruby on last , worked. hope helps others...

removed .gemrc (back file if this)...

  • gemhome: /home/[user]/ruby/gems
  • gempath: []
  • --remote

then rvm use 1.9.3 --default

then gem install rails

it seems trick was:

  1. change .gemrc file
  2. don't create , use gemset (rvm use 1.9.3@rails3) before installing rails.

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -