RVM取消设置PATH变量

时间:2014-06-09 20:23:39

标签: ruby-on-rails ruby path rvm ubuntu-12.04

我在我的机器上运行以下命令:

rvm使用ruby -v 2.1.1 ,之后我收到以下错误:

Using /home/sfawebuser/.rvm/gems/ruby-2.1.2 Command 'sort' is available in '/usr/bin/sort'Command 'head' is available in '/usr/bin/head'   The command could not be located because '/usr/bin' is not included in the PATH environment variable.The command could not be located because '/usr/bin' is not included in the PATH environment variable.   head: command not foundsort: command not found

看起来它覆盖了PATH值并删除了/ usr / bin。然后我来源我的.profile文件,其中包含/ usr / bin。当我再次运行上面的命令时,我得到完全相同的错误。所以在RVM中的某个地方,它正在做一个导出PATH ='...'的东西,它会覆盖并以某种方式忘记包含原始路径,其中包含/ usr / bin。在任何rvm命令之后必须手动源.profile是一个令人讨厌的问题。我看了一下代码,但有点令人困惑。任何人都有看到这个问题及其解决方法的经验吗?

从rvm列表输出:

Command 'awk' is available in '/usr/bin/awk'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
awk: command not found
Command 'dpkg' is available in '/usr/bin/dpkg'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dpkg: command not found
Command 'tr' is available in '/usr/bin/tr'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
tr: command not found
/somepath/.rvm/scripts/functions/utility_system: line 21: awk: command not found
/somepath/.rvm/scripts/functions/utility_system: line 22: dpkg: command not found
/somepath/.rvm/scripts/functions/utility_system: line 191: tr: command not found

rvm rubies

/somepath/.rvm/scripts/list: line 245: sort: command not found

No rvm rubies installed yet. Try 'rvm help install'.

0 个答案:

没有答案