简体   繁体   中英

How to Upgrade Ruby 1.8.7 to 1.9.2 in Rubinius

When I compile "ruby -v" command it returns,

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 ? Should I remove rubinius ?

Thanks,

Instead of deleting rubinius, I just write the command:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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