【发布时间】:2013-08-15 19:07:55
【问题描述】:
我使用 Rails 3.2.14 和 Ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] 没有 RVM。
除了我当前的 Rails 版本之外,我还需要在同一台机器上使用 Rails 2.3。我搜索了允许我在同一台机器上同时使用它们的原因,并找到了它的 RVM。
我正在使用Oh-My-ZSH,并且我输入了这个命令来安装 RVM
\curl -L https://get.rvm.io | bash -s stable
安装后我收到此警告
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/home/dexter/.bash_profile':
source ~/.profile
而且我不知道我应该如何处理我目前的 ruby 和 rails。 同时使用 Rails 3 和 Rails 所需的步骤是什么?前面的警告又是什么
➜ ~ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
➜ ~ which ruby
ruby: aliased to bundled_ruby
当我输入 rvm list 时:
rvm list
rvm rubies
# No rvm rubies installed yet. Try 'rvm help install'.
当我尝试去我的名为 Triton 的项目时
➜ ~ cd ~/Desktop\ item/Triton
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /home/dexter/Desktop item/Triton/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
ruby-1.9.3-p448 is not installed.
To install do: 'rvm install ruby-1.9.3-p448'
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 rvm