安装rvm后

curl -L get.rvm.io | bash -s stable

但是进入命令行发现,rvm use 报

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

使用 rails c

程序“rails”尚未安装。  您可以使用以下命令安装:
sudo apt-get install rails


解决办法一

执行_pro

source .bash_profile

方法二

设置以login -shell 方式启动终端(勾选以登录shell方式运行命令)

124529846.png