Sorry for the repeat, but I lost the replies. Also, only one reply appears in
the archives, which is odd, as I received three. Anyway, I asked:
I''m trying to install the native ruby tmail gem.
http://tmail.rubyforge.org/
doesn''t describe how to do this, that I could find, although it does
say that
this should work when a C compiler is not present.
Here''s[1] the result of
$ jruby -S gem install tmail
How do I force a pure ruby install in this case?
Btw, I also tried this on a Windows machine without a C compiler and it failed
in exactly the same way.
[1]
Building native extensions. This could take a while...
/home/marc/jruby/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native
extensions. Check wiki.jruby.org for alternatives. (NotImplementedError)
from /home/marc/jruby/lib/ruby/1.8/mkmf.rb:1:in `require''
from extconf.rb:1
ERROR: Error installing tmail:
ERROR: Failed to build gem native extension.
/home/marc/jruby/bin/jruby extconf.rb
========================
I received the reply:
On Mon, May 4, 2009 at 4:47 PM, Amitabh Jain <ajain101 at gmail.com>
wrote:> On Fri, May 1, 2009 at 1:08 AM, Marc Cooper <M8R-f9xidb at
mailinator.com>
>> How do I force a pure ruby install in this case?
I am not sure if tmail will automagically fail over without C
extensions, but if you don''t have the c extensions installed, it
_should_ just run in ruby fine by itself.
If you extract the tmail tar ball and get the lib/ directory with
tmail.rb in it and require that you should be fine. Just nuke the ext
directory from memory.
Mikel
========================
I''m trying to install a gem that requires tmail. To satisfy that
requirement I
need tmail installed. Because of the native extension, I can''t install
tmail
for JRuby.
Installing locally isn''t an option here, as I want to create a gem that
will
run under JRuby. The problem being that anyone installing my gem will have the
same issue.
If the pure ruby gem install is not going to be fixed, which is what I presume
from the lack of activity to fix it, which is fair enough, are there any
objections to me forking tmail to provide a pure ruby install?
--
Best,
Marc