2012-12-06 47 views
1

我RVM设置为没有宝石可以安装使用赛璐珞Rubinius的2.0.0

# .rvmrc 
rvm use rbx-2.0.0-rc1 

并将这版本正确

$ ruby -v 
rubinius 2.0.0rc1 (1.8.7 release 2012-11-02 JI) [x86_64-apple-darwin12.2.1] 

当我尝试

$ gem install celluloid -v '0.12.3' 

我收到错误

ERROR: Error installing celluloid: 
celluloid requires Ruby version >= 1.9.2. 

这是什么问题?我知道Celluloid支持Rubinius,因为它是推荐的解释器。 https://github.com/celluloid/celluloid

更新: 我想通了感谢这个链接https://gist.github.com/4123305

我需要通过-X19标志

ruby -X19 -S bundle 

回答

2

您可以在编译级别强制此:

rvm install rbx --1.9 

现在RBX的所有用途将在1.9模式下默认工作。