I got it to work using the pic gem, I was trying to install watir on
my regular ruby and not jruby. Even though the error said jruby, I did
not invoke jruby gem.

On Apr 13, 3:48 pm, Luis Lavena <[email protected]> wrote:
> On Friday, April 13, 2012 10:31:18 AM UTC-3, Jedrin wrote:
>
> > I have been having this problem on windows 7 where I have installed
> > JRuby, sometimes when I try to install a regular Ruby gem instead of
> > something for JRuby I get an error message that seems to indicate it
> > thinks it's for JRuby ..
>
> >  Below is an example. If I was going to install the gem to JRuby I
> > would type
> > jruby -S gem install watir --no-ri --no-rdoc, but I tried to install
> > it to the other Ruby:
>
> > gem install watir --no-ri --no-rdoc
>
> The error, while mixed in the backtrace seems clear to me: the usage of
> native extensions (C) with JRuby is not recommended.
>
> Also, it is failing to find a suitable compiler ("cc").
>
> If you still want to use JRuby, probably you should want to obtain a
> compiler for it. I heard that someone managed to use RubyInstaller DevKit
> with it, but I haven't tried it out.
>
> http://jonforums.github.com/ruby/2010/11/30/devkit-jruby-c-extensions...
>
> If your version of JRuby is newer than the one indicated there, perhaps you
> don't need to compile JRuby yourself.
>
> YMMV specially considering win32-api gems are not suitable for JRuby.
> Developers are working on port it to use FFI instead. You can also reach
> the Watir guys to figure out alternatives.
>
> Hope that helps
> --
> Luis Lavena

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to