Sean O'Halpin
2/16/2009 8:47:00 AM
On Mon, Feb 16, 2009 at 8:25 AM, Sean O'Halpin <sean.ohalpin@gmail.com> wrote:
> On Mon, Feb 16, 2009 at 2:50 AM, Charles Oliver Nutter
> <charles.nutter@sun.com> wrote:
>> Sean O'Halpin wrote:
>>>
>>> Ouch! Didn't try installing it as a gem in JRuby.
>>>
>>> Is it possible to specify different gem dependencies by platform?
>>
>> No, it's not. RubyGems dependency mechanism is pretty simplistic. I think
>> the only option with current RubyGems would be to have a dummy FFI gem.
>>
>> Granted, I'd love to see RubyGems handle this better; we get people asking
>> us about it every other day.
>>
>> - Charlie
>>
>
> Shame. I'll document this way to install ffi-ncurses for the moment:
>
> $ jruby -S gem install ffi-ncurses --ignore-dependencies
>
> Regards,
> Sean
>
That isn't enough - I have to remove the dependency altogether. Hmmm.
A dummy FFI gem looks like the only solution at the moment.
In the meantime, I've released a new version of the gem without the
dependency on ffi.
To install:
ruby 1.8.6:
$ sudo gem install ffi ffi-ncurses
jruby 1.1.6:
$ jruby -S gem install ffi-ncurses
Regards,
Sean