简体   繁体   中英

RVM unable to set ruby as default

Every morning I need to fire this command

rvm use 1.9.3 --default

otherwise it was unable recognise the rails s or any command.

I have installed rvm for multiuser on ubuntu 12.04

Update:

rvm list ->

rvm rubies

=> ruby-1.9.3-p448 [ i686 ]

# Default ruby not set. Try 'rvm alias create default <ruby>'.

# => - current
# =* - current && default
#  * - default

Please suggest..

Have you set your terminal as a login terminal? Without doing so, you won't be able to set any default rubies and RVM will not work completely.

https://rvm.io/integration/gnome-terminal

You can set the deault ruby version using the command :

rvm use --default ruby-1.9.3-p448

After this command, everytime you open a new terminal, ruby-1.9.3-p448 will be used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM