简体   繁体   中英

Activesupport error while installing rails in jruby

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?

Are you able to update your JRuby version?

Alternatively, try set this shell variable:

export JRUBY_OPTS=--1.9

...then re-execute your gem install rails command.

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