简体   繁体   中英

How to update Ruby 2.2.4 to 2.2..5

The reason I need to update to 2.2.5 is because whenever I run bundle install I'm receiving an error:

ERROR: Error installing ruby_dep:

ruby_dep requires Ruby version >= 2.2.5, ~> 2.2.

So I guess in order to avoid this I need to update to 2.2.5 I went to https://www.ruby-lang.org/en/news/2016/04/26/ruby-2-2-5-released/ and I downloaded the first link. I ended up with a ZIP file that I have no clue what to do with. I tried another method with: $ ruby update --system but got in return

c:\\RailsInstaller\\Ruby2.2.0\\bin\\ruby.exe: No such file or directory -- update (LoadError)

What should I do? Note: I'm using windows

Because you used Rails Installer to get Ruby set up initially, you will need to download an updated version of RailsInstaller. Unfortunately, it's current 2.2 installer includes 2.2.4.

One suggestion would be to remove RailsInstaller and use RubyInstaller instead. Unfortunately, then you would also need to set up other tools, such as Git, a database, etc.

The other thing you could try is going to an older version of ruby_dep , it appears that 1.3.1 would be suitable for you. This is dependent upon the rest of your project, since it's possible you need the current version of ruby_dep .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM