Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
它对.ruby版本视而不见_Ruby_Rvm_Ruby 1.9.3 - Fatal编程技术网

它对.ruby版本视而不见

它对.ruby版本视而不见,ruby,rvm,ruby-1.9.3,Ruby,Rvm,Ruby 1.9.3,在Rails目录中,我有一个文件.ruby版本: 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

在Rails目录中,我有一个文件.ruby版本:

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版本
文件需要
1.9.3-p392
。但是您已经安装了
ruby-1.9.3-p547
。这是不同的版本

要解决此问题,请安装ruby-1.9.3-p392(错误消息告诉您的内容):


或者将您的
.ruby版本
文件更改为
ruby-1.9.3-p547
并使用该版本。

或者将.ruby版本更改为
ruby-1.9.3
hm,为什么我没有注意到这一点?
rvm install ruby-1.9.3-p392