I tried to install RedCloth-3.274 in jruby (trunk) but the install
failed when RedCloth tried to build the C code using mkmf:
I forget whether SuperRedcloth ever did build in JRuby??
I know Hpricot (which also uses ragel which can compile to Java code)
works in JRuby – with the patch here:
https://code.whytheluckystiff.net/hpricot/ticket/131)
I might be confusing the two …
FYI: If you are on a Mac or Linux system the script I pasted here is
a very easy way to get a trunk JRuby install with it’s own gems that
won’t interfere with any other Ruby you have installed:
More info here:
http://wiki.jruby.org/wiki/Getting_Started
Here’s what happens during the install:
jruby -S gem install RedCloth --source http://code.whytheluckystiff.net
Updating metadata for 157 gems from http://code.whytheluckystiff.net
…
complete
Building native extensions. This could take a while…
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:1
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
/Users/stephen/dev/jruby_trunk/jruby/bin/jruby extconf.rb install
RedCloth --source http://code.whytheluckystiff.net
Gem files will remain installed in
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/RedCloth-3.274
for inspection.
Results logged to
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/RedCloth-3.274/ext/redcloth_scan/gem_make.out
FYI: If you are on a Mac or Linux system the script I pasted here is
a very easy way to get a trunk JRuby install with it’s own gems that
won’t interfere with any other Ruby you have installed:
More info here: