2013-09-22 111 views
0

我已执行此命令

后,我得到这个错误"echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc –".

正如本论坛中的人所建议的。 The program 'bundle' is currently not installed 现在,连我试图改变目录它显示像

-:command not found 
-:command not found 
-:command not found 
-:command not found 

。我不知道发生了什么,但在此之前,我用钢轨通过/斌/庆典--login命令日志记录但现在我得到这个错误。

[email protected]:~$ rvm -v 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 
    /home/abhinay/.rvmrc: line 1: $'\342\200\223': command not found 

rvm 1.22.10 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 

[email protected]:~$ cd rails_projects 
–: command not found 
–: command not found 
–: command not found 

回答

1

只是删除文件:

rm -f /home/abhinay/.rvmrc 

RVM将工作得很好,没有它,另外它不需要强制rvm_path - RVM没有伟大的工作,检测它 - 尤其是在$HOME/.rvm - 是默认

+0

非常感谢soo真的有效。但是我想知道为什么每次我打开一个新终端来运行rvm或rails命令时,为什么需要登录到bash(“/ bin/bash --login”)。这是我随意解决的原因,所以我不这样做每次都必须登录。 – Abhinay

+0

您可以将终端设置为使用登录shell,请参阅以下内容:http://rvm.io/integration/gnome-terminal - 需要登录,因为rvm会在某些情况下打印输出(如警告),这会破坏进程(scp,X服务器)。 – mpapis