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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Stephen B. (Guest)
on 2008-03-23 10: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
Jason G. (Guest)
on 2008-03-24 15: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
This topic is locked and can not be replied to.