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

后端 未结 9 953
遥遥无期
遥遥无期 2020-12-04 14:17

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         


        
相关标签:
9条回答
  • 2020-12-04 15:05

    I had the same problem too, and rvm get head didn't work for me, finally it was solved by running rvm get head --auto-dotfiles, then restarted the terminal and the annoying warning message disappeared! And the solution is found here: https://github.com/wayneeseguin/rvm/issues/2074 Hope this will help.

    0 讨论(0)
  • 2020-12-04 15:05

    rvm get stable solved this for me

    (as pointed out in comments on another answer by AndrewMarshall)

    0 讨论(0)
  • 2020-12-04 15:11

    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

    0 讨论(0)
提交回复
热议问题