8

尝试在 Elementary Luna OS 的终端中使用它时出现错误“RVM 不是函数”。这里有一个解释http://rvm.io/integration/gnome-terminal,但是 Elementary OS'terminal 没有设置菜单(!) - 那么如何在这个操作系统中解决这个问题?

4

2 回答 2

9

只需打开一个终端并粘贴:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile

然后执行这个:

source ~/.bash_profile

它应该可以工作

于 2013-08-30T21:39:15.010 回答
1

您应该能够通过将其附加到您的~/.bashrc文件来近似该设置(rvm.sh 可能不是正确的名称,但它是这样的)。您可能需要登录和注销才能生效。

source /etc/profile.d/rvm.sh

或者附加这个,它应该包括 /etc/profile.d/ 下的所有内容。它应该与检查 gnome-terminal 中的设置非常相似:

source /etc/profile
于 2013-08-28T21:02:37.180 回答