Warning! PATH is not properly set up, usually this

2019-01-16 09:45发布

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?

标签: ruby rvm
8条回答
时光不老,我们不散
2楼-- · 2019-01-16 10:44

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!

查看更多
我命由我不由天
3楼-- · 2019-01-16 10:45

Okay, so I ran an export PATH command without realizing the implications and ran into the identical error, but I also lost all control of my typical commands like cd and pwd. I didn't want to reset the rvm tools I'd already installed per some of the answers above.

First attempt was to some sort of mac default path (found on google):

$ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

Which actually solved my first problem of not having access to my typical command line tools, but was still getting the same error as @Santosh's initial problem. The next thing I did was navigate to my directory where I've set up rvm to start, and then to run a new export command as follows:

$ export PATH="$PATH"

This was how I initially set up rvm, and no more errors. Hope this helps someone

查看更多
登录 后发表回答