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
I tried to set .ruby-version in root directory to set the default, but it does not work:
root@vmt3:~# rbenv version
system (set by /usr/local/rbenv/version) # BUT THERE IS NO SUCH FILE!!!
root@vmt3:~# cat /usr/local/rbenv/version
cat: /usr/local/rbenv/version: No such file or directory
root@vmt3:~# cat /.ruby-version
1.9.3-p484
root@vmt3:~# rbenv versions
* system (set by /usr/local/rbenv/version)
1.9.3-p484
2.2.2
Rbenv is installed in /usr/local/rbenv/ from the git repository. Ruby 1.9.3-p484 and 2.2.2 are installed, no /usr/local/rbenv/version file exists.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. rbenv currently has a bug discovering the /.ruby-version file in the root directory. To set a global ruby version for the system, however, rbenv wants you to write to /usr/local/rbenv/version (even if it doesn't exist). So, instead of creating a /.ruby-version file in the root directory, which is not advisable since it requires root access to create and change, simply use the command:
rbenv global 1.9.3-p484
You should use rbenv global and rbenv local commands to get or set global/location versions of Ruby instead of writing to files manually.
I tried to set .ruby-version in root directory to set the default, but it does not work:
Rbenv is installed in /usr/local/rbenv/ from the git repository. Ruby 1.9.3-p484 and 2.2.2 are installed, no /usr/local/rbenv/version file exists.
The text was updated successfully, but these errors were encountered: