$PATH is not properly set up

I just ran ‘rvm get stable’ to be given the below error;

Warning! PATH is not properly set up, '/Users/jamesbkemp/.rvm/gems/ruby-2.2.1/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.2.1'.

Previous to running ‘rvm get stable’ I ran ‘brew upgrade ruby’ to Ruby 2.2.2.

  • Install git via homebrew on mac osx 10.10 results in: Error: Permission denied - /usr/local/lib/perl5/site_perl/5.18.2
  • How does git decide which version of svn to use in git-svn?
  • Update OpenSSL on OS X with Homebrew
  • Git completion not working in zsh on OS X Yosemite with Homebrew
  • How do I update Homebrew?
  • Homebrew: Won't link git on Mountain Lion
  • ‘echo $PATH’ returns the below:


    I don’t understand what the issue is here or why when i run ‘ruby -v’ it returns ‘ruby 2.2.1p85’.

    Running ‘rvm list’ returns the below, as well as the same PATH error message detailed above;

    ruby-2.0.0-p353 [ x86_64 ]
       ruby-2.0.0-p451 [ x86_64 ]
       ruby-2.1.0 [ x86_64 ]
       ruby-2.1.5 [ x86_64 ]
    =* ruby-2.2.1 [ x86_64 ]
       ruby-2.2.2 [ x86_64 ]

    Can anyone help?

  • Git + GitHub + Heroku
  • Faking a git repository for testing
  • Can't update RVM - “fatal: Unable to find remote helper for 'http'”
  • heroku deployment testing
  • homebrew update irritating error message
  • Bundler keeps removing 'BUNDLED WITH' section of Gemfile.lock
  • One Solution collect form web for “$PATH is not properly set up”

    Put RVM code at the start of $PATH

    I just had the same problem. I went to terminal and entered subl ~/ which opens up your home folder on Sublime Text (or you can use another text editor).

    I then clicked on every file starting with ., e.g. .bash_profile, .bashrc, .mkshrc, .zshrc

    Whenever I saw this line:

    export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

    I changed it to this:

    export PATH="$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting

    That way, the RVM code is at the start of $PATH. Then I quit Terminal and started it up again to make sure those config files were loaded.

    Git Baby is a git and github fan, let's start git clone.