Building gem with native extension

Dear all,

I can not install a gem that has a native extension and ran into this
error:

jruby -S jgem install datamapper

JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions. This could take a while…
ERROR: Error installing datamapper:
ERROR: Failed to build gem native extension.

jruby.bat.exe extconf.rb install datamapper
‘jruby.bat.exe’ is not recognized as an internal or external command,
operable program or batch file.

Has anyone able to solve this kind of problem before?

Best regards,

IMPORTANT NOTICE:
The information in this email (and any attachments) is confidential. If
you are not the intended recipient, you must not use or disseminate the
information. If you have received this email in error, please
immediately notify me by “Reply” command and permanently delete the
original and any copies or printouts thereof. Although this email and
any attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it is
virus free and no responsibility is accepted by American International
Group, Inc. or its subsidiaries or affiliates either jointly or
severally, for any loss or damage arising in any way from its use.

check the thread i posted about libxml. Apparently anything built with
native C extensions without a java port will not work with Jruby.
Here is a quote from the wiki:

"Many Gems will work fine in JRuby, however some Gems build native C
libraries as part of their install process. These Gems will not work in
JRuby unless the Gem has also provided a Java equivalent to the native
library.

Mongrel and Hpricot are two examples of Gems that build their native
library
in a platform independent manner. Each of them specify a parsing library
using the Ragel language and a Ragel program can be automatically
converted
into either C or Java as part of the compile process.

Also, keep in mind that installing gems from behind a firewall will
require
setting the HTTP_PROXY (format http://
${http-proxy-host}:${http-proxy-port}/)"

Adam

On Wed, Jun 18, 2008 at 10:27 PM, Partogi, Joshua
[email protected]