I was able to build Mirah successfully using rake 0.9.2.2 and JRuby 1.6.5. I installed JRuby via RVM. Before building mirah I bundled it up and ran the tests. I got a couple warnings and I have mirah.jar in my dist folder.
mirah|master@f7c5bee ⚡
$ rake jar
jruby-1.6.5
mkdir -p dist
mkdir -p build
Compiling Ruby sources
build/org/mirah/MirahCommand.java:10: '.' expected
import System;
^
build/org/mirah/MirahCommand.java:10: ';' expected
import System;
^
2 errors
Compiling Mirah sources
Parsing...
org/mirah/class_loader.mirah
org/mirah/ant/compile.mirah
duby/lang/compiler/interfaces.duby
mirah/impl/builtins.mirah
Inferring types...
Compiling...
org/mirah/class_loader.mirah
org/mirah/ant/compile.mirah
duby/lang/compiler/interfaces.duby
mirah/impl/builtins.mirah
Done!
/Users/keith/Development/mirah/Rakefile:137: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Building jar: /Users/keith/Development/mirah/dist/mirah.jar
mirah|master@f7c5bee ⚡
$ gem list jruby-1.6.5
*** LOCAL GEMS ***
bitescript (0.0.9)
bouncy-castle-java (1.5.0146.1)
bundler (1.0.21 ruby)
jruby-launcher (1.0.9 java)
jruby-openssl (0.7.4)
mirah (0.0.10 java)
rake (0.9.2.2, 0.9.2, 0.8.7)
sources (0.0.1)
Cheers,
Keith
mkdir -p build
Compiling Ruby sources
MirahCommand.java:10: '.' expected
import System;
^
MirahCommand.java:10: ';' expected
import System;
^
2 errors
Rake jar did complete though and the resulting gem seems to work fine.
Are you using the latest JRuby release (1.6.5.1)? I'm not sure how
well tested building Mirah on windows is.
~~ Robert.
Science tells us we are merely beasts, but we don't feel like that. We
feel like angels trapped inside the bodies of beasts, forever craving
transcendence.
(VS Ramachandran, cognitive neuroscientist)
On Fri, Jan 27, 2012 at 10:48 AM, Robert Fischer
~~ Robert.
Science tells us we are merely beasts, but we don't feel like that. We
feel like angels trapped inside the bodies of beasts, forever craving
transcendence.
(VS Ramachandran, cognitive neuroscientist)
"== REQUIREMENTS:
* JRuby 1.6.0 or higher."
The commands I used to build Mirah are directly from the readme.
https://gist.github.com/1690042
On Fri, Jan 27, 2012 at 10:57 AM, Robert Fischer
== For Java tools:
To build the Mirah jars from source you should have a checkout of both jruby and
bitescript in Mirah's parent directory. Run "ant jar-complete" in jruby, then in
the mirah directory "../jruby/bin/jruby -S rake jar" to build the Mirah jar. Use
"jar:complete" instead to produce a free-standing jar file with JRuby and the
JRubyParser libraries included.
~~ Robert.
Science tells us we are merely beasts, but we don't feel like that. We
feel like angels trapped inside the bodies of beasts, forever craving
transcendence.
(VS Ramachandran, cognitive neuroscientist)
With JDK 1.6.0_30, running ant jar-complete fails with:
jar-jruby-complete:
[java] ByteList.java:1375:in `setEncoding': java.lang.AssertionError
[java] from RubyString.java:420:in `<init>'
I think that's a JRuby bug.
On Fri, Jan 27, 2012 at 11:06 AM, Robert Fischer
Sorry for the false alarm.
~~ Robert.
Science tells us we are merely beasts, but we don't feel like that. We
feel like angels trapped inside the bodies of beasts, forever craving
transcendence.
(VS Ramachandran, cognitive neuroscientist)
The readme has been out of date since 2010. Bitescript is loaded from
a gem and jruby-complete is bundled with Mirah. I opened issue 163.
https://github.com/mirah/mirah/issues/163
On Fri, Jan 27, 2012 at 11:47 AM, Robert Fischer