RVM Path issue when I run RVM -V

216 views
Skip to first unread message

Chris Kuffo

unread,
Sep 16, 2013, 11:56:08 PM9/16/13
to rubyonra...@googlegroups.com
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.

--
Posted via http://www.ruby-forum.com/.

Lemuel Formacil

unread,
Sep 17, 2013, 3:05:30 AM9/17/13
to rubyonra...@googlegroups.com
'/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place

export 
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:$PATH

Colin Law

unread,
Sep 17, 2013, 3:06:59 AM9/17/13
to rubyonra...@googlegroups.com
On 17 September 2013 04:56, Chris Kuffo <li...@ruby-forum.com> wrote:
> 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

>
> 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.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fa1fbcb203908ee8d82d221cf06d61f1%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Colin Law

unread,
Sep 17, 2013, 3:09:03 AM9/17/13
to rubyonra...@googlegroups.com
On 17 September 2013 08:06, Colin Law <cla...@googlemail.com> wrote:
> On 17 September 2013 04:56, Chris Kuffo <li...@ruby-forum.com> wrote:
>> 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

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

[1] http://stackoverflow.com/questions/17968580/warning-path-is-not-properly-set-up-usually-this-is-caused-by-shell-initializa

Colin

Michał Papis

unread,
Sep 17, 2013, 4:09:50 AM9/17/13
to rubyonra...@googlegroups.com, cla...@googlemail.com
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 ...

Norbert Melzer

unread,
Sep 17, 2013, 10:41:59 AM9/17/13
to Rails Mailinglist

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

Reply all
Reply to author
Forward
0 new messages