简体   繁体   English

如何在Ubuntu 10.10中将Rails 2.3.5更新为rails 3.0.1

[英]how to update rails 2.3.5 to rails 3.0.1 in ubuntu 10.10

recently i installed rails 2.3.5 using apt-get. 最近我使用apt-get安装了Rails 2.3.5。 After installing rails 3.0.1 the version shows on as rails 2.3.5 when i type rails -v command. 安装rails 3.0.1之后,当我键入rails -v命令时,该版本将显示为rails 2.3.5。 How to change that? 如何改变呢? or can i update rails 2.3.5 to 3.0.1? 还是可以将Rails 2.3.5更新到3.0.1? pls help me out 请帮我

You should NOT use apt to manage your rubies or your gems! 您不应该使用apt来管理您的红宝石或宝石! (NEVER) (决不)

Use RVM to manage your Rubies and your gems : http://rvm.io/ 使用RVM管理您的红宝石和宝石: http : //rvm.io/

to install Rails 3 use this script.. 要安装Rails 3,请使用此脚本。

sudo gem install rails --pre

It's possible to control version of Rails 可以控制Rails的版本

rails _2.3.8_ --version
rails _3.0.0.rc_ --version

Hope it'll work. 希望它能工作。 For more details https://help.ubuntu.com/community/RubyOnRails#Installing_rails it's a best url 有关更多详细信息, https://help.ubuntu.com/community/RubyOnRails#Installing_rails是最佳网址

Oh, I got another solution. 哦,我有另一个解决方案。 Try this script, it'll work 试试这个脚本,它将起作用

sudo gem install -v=3.0.1 rails --include-dependencies

尝试使用gem uninstall rails然后选择要删除的rails gem版本。

您可以按照http://guides.rubyonrails.org/3_0_release_notes.html中给出的升级说明进行操作

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

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