ruby&rvm - 如何安装ruby的“p”版本

时间:2022-09-28 07:24:56

How can I use rvm to install a specific version of Ruby, e.g. 1.9.3p327 instead of the current 1.9.3p194 that I have.

如何使用rvm安装特定版本的Ruby,例如1.9.3p327而不是我现有的1.9.3p194。

All the references and document are about the major version, e.g. rvm install 1.9.3 but don't mention the 'p' minor version numbers.

所有参考文献和文​​件都是关于主要版本的,例如rvm install 1.9.3但是没有提到'p'次要版本号。

I tried

$ rvm install 1.9.3p327
Unknown ruby interpreter version: '1.9.3p327'.
Could not detect ruby version/name for installation, please be more specific.
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
$ rvm install '1.9.3p327'
Unknown ruby interpreter version: '1.9.3p327'.
Could not detect ruby version/name for installation, please be more specific.

2 个解决方案

#1


13  

Turned out to be a dash ! $ rvm install 1.9.3-p327

原来是一个冲刺! $ rvm install 1.9.3-p327

#2


0  

rvm install 1.9.3p327 should work without single quotes.

rvm install 1.9.3p327应该没有单引号。

EDIT: The following option is now deprecated.

编辑:现在不推荐使用以下选项。

Alternatly, to install a patch specific level you could use the -l option. For example

或者,要安装特定于修补程序的级别,可以使用-l选项。例如

rvm install 1.9.3 -l 327

#1


13  

Turned out to be a dash ! $ rvm install 1.9.3-p327

原来是一个冲刺! $ rvm install 1.9.3-p327

#2


0  

rvm install 1.9.3p327 should work without single quotes.

rvm install 1.9.3p327应该没有单引号。

EDIT: The following option is now deprecated.

编辑:现在不推荐使用以下选项。

Alternatly, to install a patch specific level you could use the -l option. For example

或者,要安装特定于修补程序的级别,可以使用-l选项。例如

rvm install 1.9.3 -l 327