简体   繁体   English

如何在Rubinius中将Ruby 1.8.7升级到1.9.2

[英]How to Upgrade Ruby 1.8.7 to 1.9.2 in Rubinius

When I compile "ruby -v" command it returns, 当我编译“ ruby​​ -v”命令时,它会返回,

rubinius 2.0.0dev (1.8.7 78652b58 yyyy-mm-dd JI) [x86_64-apple-darwin11.4.2]

How should I upgrade ruby 1.8.7 to 1.9.2 ? 如何将ruby 1.8.7升级到1.9.2? Should I remove rubinius ? 我应该删除rubinius吗?

Thanks, 谢谢,

Instead of deleting rubinius, I just write the command: 我只写了以下命令,而不是删除rubinius:

rvm ruby-1.9.3

then it works. 然后就可以了。

You can also set the language mode flag like so: 您还可以像这样设置语言模式标志:

rbx -X19 my_script.rb

And to be clear, the Rubinius team is focusing on 1.9 support, so it's best to run Rubinius in 1.9 mode anyway. 需要明确的是,Rubinius团队专注于1.9支持,因此最好还是以1.9模式运行Rubinius。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM