简体   繁体   English

错误:-:找不到命令,运行命令“ echo'rvm_path =” $ HOME / .rvm”'>>〜/ .rvmrc –”

[英]Error: -:Command not found, After running command “echo 'rvm_path=”$HOME/.rvm“' >> ~/.rvmrc –”

I am getting this error after i have executed this command 执行此命令后出现此错误

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

As suggested by someone in this forum. 正如该论坛中某人的建议。 The program 'bundle' is currently not installed and now ,Even i try to change the directory it is showing like 程序“ bundle”目前尚未安装 ,现在,即使我尝试更改显示的目录,

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

.I don't know what happened but before this,i was using rails by logging through /bin/bash --login command but now i am getting this error. 我不知道发生了什么,但是在此之前,我通过/ 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

just remove the file: 只需删除文件:

rm -f /home/abhinay/.rvmrc

rvm will work just fine without it, additionally it is not required to force rvm_path - rvm does great job detecting it - especially as the $HOME/.rvm - is the default rvm没有它也可以正常工作,另外,不需要强制rvm_path -rvm在检测它方面做得很好-尤其是$HOME/.rvm是默认值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM