Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning! PATH is not properly set up, usually this is caused by shell initialization files

Tags:

ruby

rvm

Whenever I go to a folder with a .rvmrc file, there is a warning:

Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available,          usually this is caused by shell initialization files - check them for 'PATH=...' entries,          to fix run: 'rvm use ruby-2.0.0-p247'. 

I did rvm use ruby-2.0.0-p247, but the warning is still present.

Note: There are no errors, Im able to run my application just fine, but the warning is very annoying. Any ideas?

like image 558
Santhosh Avatar asked Jul 31 '13 11:07

Santhosh


Video Answer


2 Answers

I was getting the same warning even after upgrading RVM to version 1.25.16. I was able to fix the warning by running:

rvm reset 

Then when I ran:

rvm version 

I did not receive the error anymore. Hope this helps!

like image 155
Sam Avatar answered Nov 08 '22 16:11

Sam


If you know what you're doing, and your PATH is set to what you want, you can suppress this message by putting the following in your ~/.rvmrc:

rvm_silence_path_mismatch_check_flag=1 

This is handy if you use other path-manipulating programs like virtualenv, or if you just want to prefix your path with ~/bin or something.

like image 20
Jim Stewart Avatar answered Nov 08 '22 16:11

Jim Stewart