why changes RVM my PATH?

85 views
Skip to first unread message

r144

unread,
Aug 20, 2013, 8:25:50 AM8/20/13
to rubyversi...@googlegroups.com
hi group,

when I log in on a certain machine, my $PATH has a value I cannot explain. Maybe you can help me understanding what is going on.

I use
rvm 1.21.17 (stable) by Wayne E. Seguin <wayneeseguingmail.com>, Michal Papis <mpapisgmail.com> [https://rvm.io/]

The last lines of my .zprofile say
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
rvm_project_rvmrc=1
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM



In my home directory, there is no .rvmrc. When I log in, $PATH is

rdgon@srv408bhZ echo $PATH
/home/rdgon/.rvm/gems/jruby-1.7.4/bin:/home/rdgon/.rvm/gems/jruby-1.7.4@global/bin:/home/rdgon/.rvm/rubies/jruby-1.7.4/bin:/home/rdgon/.rvm/bin:.:/usr/local/bin:/bin:/usr/bin:/usr/X11R6:/usr/X11R6/bin:/home/rdgon/bin:/usr/local/cvsutils/bin:/home/rdgon/cvs/util:/usr/lib/jruby/bin


I find it strange it contains various directories with ruby in it that are clearly put there by rvm. When I cd to a directory that contain a .rvmrc $PATH changes:
rdgon@srv408bhZ cd test
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /home/rdgon/test/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.

Using /home/rdgon/.rvm/gems/ruby-1.8.7-p374
rdgon@srv408bhZ echo $PATH
/home/rdgon/.rvm/gems/ruby-1.8.7-p374/bin:/home/rdgon/.rvm/gems/ruby-1.8.7-p374@global/bin:/home/rdgon/.rvm/rubies/ruby-1.8.7-p374/bin:/home/rdgon/.rvm/bin:.:/usr/local/bin:/bin:/usr/bin:/usr/X11R6:/usr/X11R6/bin:/home/rdgon/bin:/usr/local/cvsutils/bin:/home/rdgon/cvs/util:/usr/lib/jruby/bin


When I go back to my home directory, jruby-1.7.4 is in $PATH again. Who can explain what is going on? Is it possible to tell rvm not to add that to $PATH?

thanks in advance, Ruud

r144

unread,
Aug 20, 2013, 8:52:38 AM8/20/13
to rubyversi...@googlegroups.com
I found out that jruby-1.7.4 must have been defind as default ruby. By issuing

rvm reset


this situation was restored to normal again. No idea why that default was active.
Must have done it myself, once. Very confusing.....

mpapis

unread,
Sep 13, 2013, 12:26:36 PM9/13/13
to rubyversi...@googlegroups.com
first installed ruby is set as default and rvm loads default ruby when it is sourced
Reply all
Reply to author
Forward
0 new messages