0

执行此命令后出现此错误

"echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc –"..

正如本论坛中有人建议的那样。当前未安装程序“捆绑” ,现在,即使我尝试更改它显示的目录

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

.我不知道发生了什么,但在此之前,我通过 /bin/bash --login 命令登录使用rails,但现在我收到此错误。

 abhinay@abhinay-Pc:~$ 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 <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

abhinay@abhinay-Pc:~$ cd rails_projects
–: command not found
–: command not found
–: command not found
4

1 回答 1

1

只需删除文件:

rm -f /home/abhinay/.rvmrc

rvm 没有它也可以正常工作,另外它不需要强制rvm_path- rvm 可以很好地检测它 - 特别是因为$HOME/.rvm- 是默认值

于 2013-09-22T20:06:03.243 回答