Forum: Redcloth redcloth gem ragel code doesn't build in jruby

Posted by Stephen Bannasch (Guest)
on 2008-03-23 09:57
(Received via mailing list)
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:

   http://pastie.caboo.se/165048

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:

   http://pastie.caboo.se/165048

More info here:

   http://wiki.jruby.org/wiki/Getting_Started
Posted by Jason Garber (Guest)
on 2008-03-24 14:24
(Received via mailing list)
Stephen:
I'm guessing you figured out that Hpricot has JRuby source and not
RedCloth.  You're welcome to code it, though!

Good work on benchmarking the code generation styles.  I'm eager to
see the results!

Jason
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.