Using RVM on Ubuntu 12.04 to use Rails. The program 'rails' is currently not installed

后端 未结 3 2011
刺人心
刺人心 2021-01-30 14:42

I installed RVM from scratch following the installation guide on the official website. I installed Rails, created a dummy app and everything worked fine.

I shut off my m

3条回答
  •  情歌与酒
    2021-01-30 15:08

    You need to type source ~/.rvm/scripts/rvm before attempting to use Rails.

    I believe the RVM installation suggests putting this line (or something similar) in your .bashrc.

    Run the following command in Terminal:

    echo "source \$HOME/.rvm/scripts/rvm" >> ~/.bashrc
    

    This appends the line source \$HOME/.rvm/scripts/rvm to the end of the .bashrc file.

    Doing so ensures that RVM is properly loaded each time you open up a terminal.

提交回复
热议问题