RVM Path issue when I run RVM -V

Hello - Hoping someone can help with this issue. Everytime i run rvm -v i receive this error.

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries,

My .bash_profile looks like this:

export PATH=$PATH:/usr/local/rvm/gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active/sbina export PATH=/usr/local/bin:$PATH export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

Can anyone point me in the right direction to resolve this. I have already tried the following.

rvm get stable --auto-dotfiles rvm get head --auto-dotfiles rvm get head rvm get stable

Thanks in advance.

‘/usr/local/rvm/gems/ruby-1.9.3-p392/bin’ is not at first place

export

Hello - Hoping someone can help with this issue. Everytime i run rvm -v i receive this error.

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries,

Is this a new setup or has it worked previously?

What do you see if you run echo $PATH

Colin

Also googling for the error message produced [1]. Possibly that will help.

[1] ruby - Warning! PATH is not properly set up, usually this is caused by shell initialization files - Stack Overflow

Colin

Change this line:

export PATH=$PATH:/usr/local/rvm/ gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active/sbina

to:

export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active/sbina

as sourcing rvm will load default ruby and set it properly first in the PATH …

Please read the error messages and LOOK at your path variables, not only copy and paste them.

Reading and understanding error messages can help save time pretty often…