wait@ubuntu:~$ rvm use 2.0.0
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 an example.
解决办法主要是添加环境变量,网上也有很多其他的解决办法,我是用这个解决的,如下:
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
本文介绍了解决RVM在非登录Shell环境下无法正确使用的问题。通过设置环境变量,确保RVM能够在各种终端模拟器中正常工作。
703

被折叠的 条评论
为什么被折叠?



