Can't install warbler 0.9.5?

I am trying to install warbler 0.9.5 with this command:

/tools/jruby-1.1.1/bin/jruby -S gem install warbler -v 0.9.5
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
ERROR: could not find warbler locally or in a repository

Am I doing something wrong?

-vivek.

Hi Vivek,

I can reproduce the problem here as well, which is a bit puzzling.

I know that the gems server has been upgraded to rubygems 1.2, with
new data format, maybe that somehow affects this.

At any rate, JRuby 1.1.2 works just fine, as well as current trunk.

Thanks,
–Vladimir

On Tue, Jun 24, 2008 at 8:13 PM, Vivek P. [email protected]
wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Some more info.

JRuby 1.1.1 comes with rubygems 1.1.0, and that version had some
issues with caching and behaves strangely even on Matz Ruby. I
sometimes get an empty list of remote gems with Matz Ruby as well,
when I use rubygems 1.1.0.

So, any other JRuyb version (1.1 or 1.1.2 or trunk) will work, only
JRuby 1.1.1 won’t, since it rubygems doesn’t see any remote gems.

Thanks,
–Vladimir

On Tue, Jun 24, 2008 at 8:53 PM, Vladimir S. [email protected]
wrote:

–Vladimir

-vivek.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

The reason I was trying out JRuby 1.1.1 was because 1.1.2 does not
work, it
gives OutOfMemory error. -JXmx512 does not help either.

vivekmz@boson(715)> /tools/jruby-1.1.2/bin/jruby -S gem install warbler
-v
0.9.5
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Bulk updating Gem source index for: http://gems.rubyforge.org/
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at org.jruby.util.ByteList.grow(ByteList.java:635)
at org.jruby.util.ByteList.append(ByteList.java:121)
at org.jruby.util.ByteList.append(ByteList.java:127)
at org.jvyamlb.ScannerImpl.update(ScannerImpl.java:329)
at org.jvyamlb.ScannerImpl.ensure(ScannerImpl.java:349)
at org.jvyamlb.ScannerImpl.scanLineBreak(ScannerImpl.java:610)
at org.jvyamlb.ScannerImpl.scanToNextToken(ScannerImpl.java:591)
at org.jvyamlb.ScannerImpl.fetchMoreTokens(ScannerImpl.java:507)
at org.jvyamlb.ScannerImpl.peekToken(ScannerImpl.java:423)
at org.jvyamlb.ScannerImpl.peekToken(ScannerImpl.java:429)
at
org.jvyamlb.ParserImpl$ProductionEnvironment.produce(ParserImpl.java:385)
at org.jvyamlb.ParserImpl.parseStreamNext(ParserImpl.java:766)
at org.jvyamlb.ParserImpl.peekEvent(ParserImpl.java:717)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:139)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:145)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:145)
at org.jvyamlb.ComposerImpl.composeDocument(ComposerImpl.java:78)
at org.jvyamlb.ComposerImpl.getNode(ComposerImpl.java:54)
at
org.jvyamlb.BaseConstructorImpl.getData(BaseConstructorImpl.java:74)
at org.jruby.RubyYAML.load(RubyYAML.java:200)
at org.jruby.RubyYAMLInvoker$load_s_method_1_0.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:155)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:332)
at
org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:649)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:324)
at
org.jruby.evaluator.ASTInterpreter.returnNode(ASTInterpreter.java:1628)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:472)
at
org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:620)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:318)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1556)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:468)
at
org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:620)

-vivek.

On Tue, Jun 24, 2008 at 12:14 PM, Vladimir S. [email protected]

Hi Vivek,

On Tue, Jun 24, 2008 at 10:15 PM, Vivek P. [email protected]
wrote:

The reason I was trying out JRuby 1.1.1 was because 1.1.2 does not work, it
gives OutOfMemory error.

This is a very visible problem that started to pop up very often
recently.
The number of gems is growing and hence the memory requirements (for
both, Matz Ruby or JRuby running rubygems, especially during the bulk
update).

-JXmx512 does not help either.

You meant -J-Xmx512m, right? Currently, I have it set to 800m, and
rubygems install works fine.

Note: Tomorrow I’m going to upgrade the JRuby trunk with the very
latest rubygems 1.2 which should dramatically reduce the memory
requirements (and speed up things a bit too).

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I experienced OOM problem with JRuby 1.1.2 when I tried installing Rails
2.1 as well (over the weekend on OpenSolaris and again this morning on
Mac). However if I set “JAVA_MEM=-Xmx750m” then it seems to work.

BTW, check out JRuby/Rails on Open Solaris at:

http://blogs.sun.com/arungupta/entry/jruby_on_rails_and_mysql

-Arun

Vivek P. wrote:

at org.jruby.util.ByteList.append(ByteList.java:121)
at org.jvyamlb.ParserImpl.parseStreamNext(ParserImpl.java:766)

org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:155)
at

 > I can reproduce the problem here as well, which is a bit puzzling.
<[email protected] <mailto:[email protected]>> wrote:
 >> -vivek.
 >>
 >

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Chris,

The default value is 500m and setting 512m did not help. On an
OpenSolaris VM (with 1GB memory), I had to set the value to 750m for the
installation to work. On a freshly booted VM, the installation worked
without any setting. So it is not exactly reproducible for me :frowning:

Alternatively you can set JAVA_MEM=-Xmx512m and then bin/jruby reads
that environment.

-Arun

Chris K. wrote:

JRuby limited openssl loaded. gem install jruby-openssl for full support.


Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I am curious, though… With JRuby 1.1.2, you can install warbler
0.9.9 without a problem.

$ jruby -vS gem install warbler
ruby 1.8.6 (2008-05-28 rev 6586) [i386-jruby1.1.2]
Successfully installed warbler-0.9.9
1 gem installed
Installing ri documentation for warbler-0.9.9…
Installing RDoc documentation for warbler-0.9.9…

Hiro


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Vivek, folks,

On Tue, Jun 24, 2008 at 10:15 PM, Vivek P. [email protected]
wrote:

The reason I was trying out JRuby 1.1.1 was because 1.1.2 does not work, it
gives OutOfMemory error. -JXmx512 does not help either.

I’m happy to report that JRuby trunk has been upgraded with rubygems
1.2, and the speed-up is really amazing, gem installations are now
very fast and memory never exceeds 40Mb for me (instead of 600Mb-700Mb
at the times for rubygems 1.1.1).

This will appear in JRuby 1.1.3 release.

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Try this

jruby -J-Xmx512m -S gem install

Vivek P. wrote:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email