> ~/.rvmrc –".. As suggested by someone in this forum.The pr" /> > ~/.rvmrc –".. As suggested by someone in this forum.The pr" /> > ~/.rvmrc –".. As suggested by someone in this forum.The pr"/>

Error: -:Command not found, After running command "echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc –"

447 views Asked by At

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

-: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.

 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 <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]

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

There are 1 answers

2
mpapis On BEST ANSWER

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