JamesRocky
JamesRocky

Reputation: 721

Persistant "bash: /home/XXX/.rvm/scripts/rvm: No such file or directory" in terminal

I've installed ruby on rails and have checked all are current. One thing thats been bothering me is this constant "bash: /home/elementary/.rvm/scripts/rvm: No such file or directory" in my terminal.

How do I remove this "bash: /home/elementary/.rvm/scripts/rvm: No such file or directory"? To be honest I don't know what it means but I wish I could remove it as rails and ruby are current versions.

bash: /home/elementary/.rvm/scripts/rvm: No such file or directory

Upvotes: 2

Views: 6401

Answers (3)

Mamun Hasan
Mamun Hasan

Reputation: 41

Your installation is not perfect. Please follow the below commands

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
=====Install RVM stable with ruby:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
source ~/.bashrc
rvm --version

Upvotes: 0

Ananth Srinivasan
Ananth Srinivasan

Reputation: 136

Add the below to your .bashrc

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

Add the below to your .bash_profile

source ~/.profile
source ~/.bashrc

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="/usr/local/bin:$PATH"

Upvotes: 4

the Tin Man
the Tin Man

Reputation: 160631

It looks like you installed RVM at some point, and for some reason it isn't correctly installed any more.

Read the installation instructions carefully and follow the diagnostics and debugging steps.

The authors of RVM specifically say in that page to NOT follow other tutorials on installing RVM. They understand how it works better than anyone.

Upvotes: 1

Related Questions