且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到 rvm 命令

更新时间:2023-11-22 10:25:46

可能重复:Ubuntu rvm 设置问题

您的问题是当您打开新终端时未加载 RVM.

Your problem is that RVM is not loaded when you open a new terminal.

要解决此问题,请运行以下命令行:(如果使用 login-shell)

To solve this, run this command line: (if using login-shell)

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile

或者这个(如果使用非登录shell):

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

或者如果您使用 zsh(和/或 oh-my-zsh):

Or if you are using zsh (and/or oh-my-zsh):

echo "source $HOME/.rvm/scripts/rvm" >> ~/.zshrc

这将添加 RVM 的路径以在每个终端实例化时加载.您必须关闭并重新打开您的终端,或者只需调用 source ~/.bashrc(或 ~/.bash_profile~/.zshrc).

This will add the path to RVM to load at each Terminal instantiation. You must either close and reopen your terminals or simply call source ~/.bashrc (or ~/.bash_profile or ~/.zshrc).