2

I installed jRuby using rvm. It's version is jruby-1.6.7.2 [ i386 ]. Now I am trying to install rails on top of it. But I am getting following error

ERROR: Error installing rails: activesupport requires Ruby version >= 1.9.3.

I am using following command to install rails which I found in many answers on so itself.

jruby -S gem install rails --pre --no-rdoc --no-ri

I also tried passing --1.9 option to jruby so that it can use ruby 1.9 interpreter. But that also not working.

jruby --1.9.3 -S gem install rails

My RVM list is as follows :

rvm rubies

 => jruby-1.6.7.2 [ i386 ]
    ruby-1.8.7-p358 [ i686 ]
  * ruby-1.9.3-p194 [ i686 ] 
    ruby-1.9.3-p286 [ i686 ]

Please guide me whats going wrong?

4

1 回答 1

0

你能更新你的 JRuby 版本吗?

或者,尝试设置这个 shell 变量:

export JRUBY_OPTS=--1.9

...然后重新执行您的gem install rails命令。

于 2013-07-01T07:12:50.673 回答