How can I change Ruby to version 1.9.3 (again) with RVM?

前端 未结 1 1557
暖寄归人
暖寄归人 2021-01-06 10:20

I used to work with Ruby version 1.9.3 on Ubuntu and made an update that probably screwed my bash profile and I need help to turn it back rather than using version 1.8.7. Ri

相关标签:
1条回答
  • 2021-01-06 10:59

    You are not in the login shell. To enter the login shell try this command:

    /bin/bash --login
    

    After that you will be able to use RVM to select Ruby.

    Also, there is permanent way, that you won't have to write this line everytime you open your terminal. Try this:

    Edit menu -> Profile Preferences 
    

    A dialog will appear, now select Run command in login shell.

    After that, whenever you open your terminal, you will enter into the login shell, and you will be able to use RVM.

    There is another way, you can write /bin/bash --login in your .bash_profile which will load every time when you reboot.

    0 讨论(0)
提交回复
热议问题