0

I wanted to upgrade rubygems and did the following

C:\>gem install --local C:\rubygems-update-2.6.10.gem
C:\>update_rubygems

gem install worked fine but when I do update_rubygems I get

The system cannot find the path specified.

I am not sure what path is it picking up and from where. Any pointers for this?

codec
  • 7,978
  • 26
  • 71
  • 127
  • This can help https://stackoverflow.com/questions/13626143/how-to-upgrade-rubygems – Vishwas Nahar Apr 14 '17 at 14:28
  • Are you on Windows? – Sara Fuerst Apr 14 '17 at 15:02
  • 1
    We need more information. Since the system says it can't find the path, what _IS_ the path it's looking for and does that path exist? What does `gem env` output? (Copy/paste the output into your question, formatting it appropriately for readability.) – the Tin Man Apr 14 '17 at 15:07

1 Answers1

0

You need to update your $PATH variable to include the path to Ruby's bin directory. You can add it to your path using something along the lines of:

 set PATH=%PATH%;C:\Ruby200-x64\bin

Just replace Ruby200-x64 with the path to your bin directory

Sara Fuerst
  • 5,688
  • 8
  • 43
  • 86