You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joe James edited this page Mar 4, 2014
·
2 revisions
Because sudo resets the $PATH environment variable, running a Ruby command through sudo will not invoke the currently selected Ruby, but will invoke the system Ruby instead. To solve this problem you need to invoke sudo commands using chruby-exec: