Reputation: 14241
I've read similar questions but still unlucky. In my server (Ubuntu 16.04) I have two user: root
and other
. I want to config a Rails project.
Now, after some configuration I installed the v2.5
version of Ruby (required) as a root
user using Rbenv, but in the other
profile the version kept the same as default (v2.3
).
I've managed to know set the proper version in the other
profile. When I do:
rbenv versions
The output is the following:
system
* 2.5.0 (set by /home/other/.rbenv/version)
But when I do:
ruby -v
The version keeps being the default one:
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
How to set the version to v2.5
?
Thanks in advance.
Upvotes: 0
Views: 342
Reputation: 181
when you run ruby -v, it's considering your ruby installed by apt install ruby
.
You must remove ruby-build
with apt remove ruby-build
and clone the ruby-build
to inside rbenv
directory and then install and set as global with rbenv.
I want to recommend you to read and follow this tutorial after remove local ruby-build.
Upvotes: 1