JRuby and gems

Hello

I 'm trying to port a rails application in Jruby.
But I have a problem with the gettext gems.
I install the gem with :

$JRUBY_HOME/bin/gem install gettext

And this is the error :
Building native extensions. This could take a while…
:1: no such file to load – mkmf (LoadError)
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install gettext
Gem files will remain installed in
/usr/lib/jruby-1.0/lib/ruby/gems/1.8/gems/gettext-1.10.0 for inspection.
Results logged to
/usr/lib/jruby-1.0/lib/ruby/gems/1.8/gems/gettext-1.10.0/ext/gettext/gem_make.out

If y use the cRuby gem, there aren’t any problems.
I’m trying to copy file from the cRuby installation gem to the JRuby
installation
but it’s didn’t work

$JRUBY_HOME/bin/rgettext
/usr/lib/jruby-1.0/bin/rgettext: line 9: require: command not found
/usr/lib/jruby-1.0/bin/rgettext: line 10: version: command not found
/usr/lib/jruby-1.0/bin/rgettext: line 11: syntax error near unexpected
token (' /usr/lib/jruby-1.0/bin/rgettext: line 11:if ARGV.first =~ /^(.*)$/
and Gem::Version.correct? $1 then’

And when I lauch the webserver (WebRick or GlassFish), rails didn’t
require the gettext/rails.rb file.

Has one person who use gettext in a JRuby application ?
How install the gettext gems ?
Thank you for the help.