【发布时间】:2014-09-10 06:17:59
【问题描述】:
在 Rails 目录中,我有一个 .ruby-version 文件:
1.9.3-p392
我已经安装了这个版本,即使我使用的 Ruby 的主要版本是2.1.2。但是对于那个项目我需要1.9.3
在 Gemfile 我也有这个:
source "http://rubygems.org"
ruby "1.9.3"
但是当我在终端进入这个目录时,它会说:
ruby-1.9.3-p392 is not installed.
To install do: 'rvm install ruby-1.9.3-p392'
但正如我所说:
$ rvm list
ruby-1.9.3-p547 [ x86_64 ]
ruby-2.1.1 [ x86_64 ]
=* ruby-2.1.2 [ x86_64 ]
附:我还有另一个警告,但我认为它与此问题无关:
$ rvm list
Warning! PATH is not properly set up, '/Users/alex/.rvm/gems/ruby-2.1.2/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.1.2'.
rvm rubies
【问题讨论】:
标签: ruby rvm ruby-1.9.3