简体   繁体   English

如何不使用rvm将Rails 4.1应用程序从ruby 1.9.3升级到ruby 2.1.5

[英]How do I upgrade a rails 4.1 app from ruby 1.9.3 to ruby 2.1.5 without using rvm

I'm told to update my rails project from ruby version 1.9.3 to 2.1.5 but I don't know how 有人告诉我将Rails项目从ruby版本1.9.3更新到2.1.5,但我不知道如何

2.1.5是我的红宝石版本

I updated my gem file to reflect 2.1.5, and then tried bundle install again, it seemed to work mostly... 我更新了我的gem文件以反映2.1.5,然后再次尝试捆绑安装,它似乎大部分都可以工作...

Then I tried rake db:migrate and it couldn't handle it. 然后,我尝试了rake db:migrate,但无法处理。 so I don't think I "updated correctly" 所以我认为我没有“正确更新”

在此处输入图片说明

I don't have RVM so I didn't know what to do with this answer. 我没有RVM,所以我不知道该怎么做

Can someone please help me update my code or point me in the right direction? 有人可以帮我更新代码或为我指出正确的方向吗?

You're on Windows? 您在Windows上吗? Check out Ruby installer here: http://rubyinstaller.org/ . 在此处查看Ruby安装程序: http : //rubyinstaller.org/ Should be able to update Ruby that way. 应该能够以这种方式更新Ruby。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用RVM将Rails 3.2应用程序从ruby 1.9.3升级到ruby 2.1.5 - How do I upgrade a rails 3.2 app from ruby 1.9.3 to ruby 2.1.5 using rvm 如何在没有 RVM 的情况下在 Ubuntu 上安装 Ruby 1.9.3? - How do I install Ruby 1.9.3 on Ubuntu without RVM? 如何使用RVM在Rails应用程序上升级Ruby的Ruby版本 - How to upgrade ruby version of ruby on rails app using rvm 如何在不使用RVM的情况下指定Ruby for Rails的版本? - How do I specify a version of Ruby for Rails without using RVM? 使用RVM或Brightbox Gem升级到红宝石1.9.3 - Upgrade to ruby 1.9.3 with rvm or brightbox gems 使用rvm升级到ruby 1.9.3会破坏我的rails应用程序 - upgrading to ruby 1.9.3 with rvm breaks my rails app 如何使用 Ruby 1.9.3、passenger、nginx 和 rvm 安装 rails 3.2.2? - How to install rails 3.2.2 with Ruby 1.9.3, passenger, nginx and rvm? 如何从Rails 2.3.8应用程序的Ruby 1.8.7升级到Ruby 1.9.2? - How do I upgrade from Ruby 1.8.7 to Ruby 1.9.2 for Rails 2.3.8 app? 我如何使Ruby 1.9.3应用适应在使用Ruby 1.8.7的服务器上工作 - How do I adapt a Ruby 1.9.3 app to work on a Server using Ruby 1.8.7 使用RVM在ruby 2.2.0上安装rails 4.2生成“你的Ruby版本是2.2.0,但你的Gemfile指定为2.1.5” - installing rails 4.2 on ruby 2.2.0 using RVM generates “Your Ruby version is 2.2.0, but your Gemfile specified 2.1.5”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM