Further investigation reveals fileutils.rb in
/java/pubs/tools/jruby/1.0/lib/ruby/1.8
I /thought/ that was a core package, but when the mv
command wasn't recognized, I thought I needed to require
it in. But that failed with "no file found".
Reading the file, I can see that it's a module.
So apparently I need to include that module, or some
such. (I've been away a while, and my chops are /very/
rusty...)
Eric Armstrong wrote:
% which gem
/java/pubs/tools/jruby/latest/bin/gem
% ls -l /java/pubs/tools/jruby/latest
/java/pubs/tools/jruby/latest -> 1.0/
Server: javapubs (big honkin' Enterprise 450 w/ton o'memory)
% gem install FileUtils
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.<init>(ByteList.java:64)
at org.jvyamlb.ScannerImpl.scanPlain(ScannerImpl.java:784)
at org.jvyamlb.ScannerImpl.fetchPlain(ScannerImpl.java:778)
at org.jvyamlb.ScannerImpl.fetchMoreTokens(ScannerImpl.java:529)
at org.jvyamlb.ScannerImpl.peekToken(ScannerImpl.java:411)
at org.jvyamlb.ParserImpl$29.produce(ParserImpl.java:518)
at org.jvyamlb.ParserImpl.parseStreamNext(ParserImpl.java:823)
at org.jvyamlb.ParserImpl.peekEvent(ParserImpl.java:774)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:147)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:167)
at org.jvyamlb.ComposerImpl.composeDocument(ComposerImpl.java:100)
at org.jvyamlb.ComposerImpl.getNode(ComposerImpl.java:76)
at
org.jvyamlb.BaseConstructorImpl.getData(BaseConstructorImpl.java:97)
at org.jruby.RubyYAML.load(RubyYAML.java:221)
at org.jruby.RubyYAMLInvokerSload1.call(Unknown Source)
at
org.jruby.runtime.callback.FastInvocationCallback.execute(FastInvocationCallback.java:49)
at
org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:81)
at
org.jruby.evaluator.EvaluationState.callNode(EvaluationState.java:568)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:207)
at
org.jruby.evaluator.EvaluationState.orNode(EvaluationState.java:1459)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:339)
at
org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:164)
at
org.jruby.internal.runtime.methods.DefaultMethod.internalCall(DefaultMethod.java:135)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:79)
at
org.jruby.evaluator.EvaluationState.fCallNode(EvaluationState.java:1023)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:253)
at
org.jruby.evaluator.EvaluationState.blockNode(EvaluationState.java:531)
at
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:201)
at
org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:164)
at
org.jruby.internal.runtime.methods.DefaultMethod.internalCall(DefaultMethod.java:135)
--
Eric Armstrong, Document Systems Architect, Sun Microsystems
http://blogs.sun.com/coolstuff
http://www.artima.com/weblogs/index.jsp?blogger=cooltools
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email