无法使用jRuby安装rails [英] Unable to install rails with jRuby

查看:135
本文介绍了无法使用jRuby安装rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用jRuby用以下命令安装rails
$ b


jruby -S gem install rails -v 3.0.6

但是出现错误:

 <$ c $ JRuby限制openssl加载。 http://jruby.org/openssl 
完全支持gem install jruby-openssl。
System.java:-2:in`arraycopy':java.lang.ArrayIndexOutOfBoundsException $ b $ from DefaultResolver.java:111:in`makeTime'
from DefaultResolver.java:277:in`create '
from DefaultResolver.java:317:in`handleScalar'
from DefaultResolver.java:435:in`orgHandler'
from DefaultResolver.java:455:in`node_import'
from org / yecht / ruby​​ / DefaultResolver $ s_method_1_0 $ RUBYINVOKER $ node_import
.gen:65535:in`call'$ b $ C from CachingCallSite.java:146:in`call'$ b $ from RubyLoadHandler.java :40:在`handle'中
从Parser.java:300:in`addNode'
from DefaultYAMLParser.java:676:in`yyparse'
from Parser.java:290:in` yechtparse'
from Parser.java:284:in`parse'
from YParser.java:152:in`load'
from org / yecht / ruby​​ / YParser $ s_method_0_1 $ RUBYINVOKER $ load .gen:65535:在`
call'中从JavaMethod.java:630:in中
`call'
from DynamicMethod.java:186:in`call'
from CachingCallSite.java:309:in`cacheAndCall'
from CachingCallSite.java:148:in`call'$ b来自CallOneArgNode.java的$ b:57:在LocalAsgnNode.java:123中解释'
:解释'来自NewlineNode.java的
:104:解释来自InterpretedMethod的
。 java:180:在`call'
from DefaultMethod.java:174:in`call'$ b $ from CachingCallSite.java:309:in`cacheAndCall'
from CachingCallSite.java:148:in `Call'
from CallOneArgNode.java:57:in`interpret'
from LocalAsgnNode.java:123:in`interpret'
from NewlineNode.java:104:in`interpret'$ b来自BlockNode.java:71的$ b:解释来自InterpretedMethod.java的
:从调用'调用'
来自DefaultMethod.java:174:在CachingCallSite中调用
。 java:309:来自Cac的`cacheAndCall'
hingCallSite.java:148:in`call'
from CallOneArgNode.java:57:in`interpret'

任何人都可以帮助我解决这个错误。



在此先感谢您。

解决方案

我之前刚刚遇到过这个问题,但它与 rspec 。试试这个:

jruby --1.9 -S gem install rails -v 3.0.6



<这告诉jruby使用ruby 1.9解释器。


I am trying to install the rails with jRuby with the following command

jruby -S gem install rails -v 3.0.6

But stuck with the error :

JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
        from DefaultResolver.java:111:in `makeTime'
        from DefaultResolver.java:277:in `create'
        from DefaultResolver.java:317:in `handleScalar'
        from DefaultResolver.java:435:in `orgHandler'
        from DefaultResolver.java:455:in `node_import'
        from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node_import
.gen:65535:in `call'
        from CachingCallSite.java:146:in `call'
        from RubyLoadHandler.java:40:in `handle'
        from Parser.java:300:in `addNode'
        from DefaultYAMLParser.java:676:in `yyparse'
        from Parser.java:290:in `yechtparse'
        from Parser.java:284:in `parse'
        from YParser.java:152:in `load'
        from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:65535:in `
call'
        from JavaMethod.java:630:in `call'
        from DynamicMethod.java:186:in `call'
        from CachingCallSite.java:309:in `cacheAndCall'
        from CachingCallSite.java:148:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from InterpretedMethod.java:180:in `call'
        from DefaultMethod.java:174:in `call'
        from CachingCallSite.java:309:in `cacheAndCall'
        from CachingCallSite.java:148:in `call'
        from CallOneArgNode.java:57:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from InterpretedMethod.java:180:in `call'
        from DefaultMethod.java:174:in `call'
        from CachingCallSite.java:309:in `cacheAndCall'
        from CachingCallSite.java:148:in `call'
        from CallOneArgNode.java:57:in `interpret'

Anyone can help me to out of this error .

Thanks in advance .

解决方案

I had this problem just a bit ago, but it was with rspec. Try this:
jruby --1.9 -S gem install rails -v 3.0.6

This tells jruby to use the ruby 1.9 interpreter.

这篇关于无法使用jRuby安装rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆