How to install Rails 2.3.2 and 2.3.4 simultaneously on Ubuntu 9.04?

送分小仙女□ 提交于 2019-12-09 18:59:01

问题


I need to install Rails 2.3.2 and Rails 2.3.4 simultaneously on my Ubuntu 9.04 server. How do I do this?

When I run:

sudo gem install rails

...it installs version 2.3.4. Is there a single command I can use to also install 2.3.2 parallel to the default (latest) version?

Thanks!


回答1:


use the -v option to gem:

sudo gem install rails -v=2.3.2

you'll have to do a separate install for 2.3.4 though




回答2:


once installed you can specify which version you want to use for a specific rail app by editing the environment.rb file

config/environment.rb

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION


来源:https://stackoverflow.com/questions/1637392/how-to-install-rails-2-3-2-and-2-3-4-simultaneously-on-ubuntu-9-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!