[Mongrel] error when installing on jruby (fastthread dependency)

Stephen Bannasch stephen.bannasch at deanbrook.org
Sat Dec 22 10:29:54 EST 2007


I'm running jruby trunk which has integrated rubygems 1.0.0 and when 
I try and install mongrel with gem it blows up when the fastthread 
dependency tries to do a native compilation.

I couldn't find a copy of the gemspec in the svn checkout but looking 
at the one installed when gem installing mongrel didn't show any 
platform differentiation. There is platform differentiation in the 
rake file.

It looks like the gemspec is derived somehow from the rake task (the 
rake file is in the gemspec as comments).

Here's the error when I try and install mongrel:

$ gem install mongrel -V
Installing gem fastthread-1.0.1
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/test/test_queue.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/test/test_mutex.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/test/test_condvar.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/test/test_all.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/setup.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/Manifest
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/fastthread.c
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/extconf.rb
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/CHANGELOG
/Users/stephen/dev/jruby_trunk/jruby/lib/ruby/gems/1.8/gems/fastthread-1.0.1/fastthread.gemspec
Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
ERROR:  Error installing mongrel:
         ERROR: Failed to build gem native extension.

bug report filed:
http://rubyforge.org/tracker/index.php?func=detail&aid=16517&group_id=1306&atid=5145



More information about the Mongrel-users mailing list