From: Sean O'Halpin Date: 2009-02-16T17:46:44+09:00 Subject: Re: [ruby-ffi] Re: [ANN] ffi-ncurses version 0.3.0 On Mon, Feb 16, 2009 at 8:25 AM, Sean O'Halpin wrote: > On Mon, Feb 16, 2009 at 2:50 AM, Charles Oliver Nutter > 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