Another ruby version in sudo
I am using OSX 10.10.3
and using rbenv
ruby for use.
when i ran ruby -v
:
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
when i run sudo ruby -v
:
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
versions in rbenv (both sudo and regular run):
system
* 2.2.1 (set by /Users/shalev/.rbenv/version)
How can I change the ruby version in sudo and why is this happening?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: