I Am Getting This Gem Install Error for Kgio Gem When I Do a Bundle Install

I am getting this gem install error for kgio gem when i do a bundle install

The problem was Xcode. Go to Xcode settings -> Downloads and make sure you have the "Command Line Tools" installed. Once I installed them, the bundle install ran just fine.

Cannot install kgio gem 2.9.2 ? Help please?

I've been facing the same issue with a Linux OS application I've been stubbornly developing on Windows. In a nutshell, the unicorn gem relies on kgio which is *nix only, as described in this similar StackOverflow question.

However! All is not lost, as in order to run your project locally on Windows, you can use other less demanding gems - I used thin for a while, but then realised that RubyMine would quite happily load up the Rails application with WEBrick. If you have a production Linux server and want to use unicorn there, but prefer using thin locally, you can edit your Gemfile as follows:

platforms :ruby do
gem 'unicorn'
end
platforms :mswin do
gem 'thin'
end

This will load the appropriate gems depending on the environment.

Or you can exclude the group that contains unicorn when you bundle install on Windows by running this command:

bundle install --without production

And then it'll stop complaining about kgio but you can still run your app using the WEBrick server that comes with Rails (as I said, I've only done this within RubyMine, but I'm sure you can run start it directly from the command line).

gem install kgio ERROR

kgio is only for *nix system.

the kgio gem page:

kgio 2.8.0 kgio provides non-blocking I/O methods for Ruby without
raising exceptions on EAGAIN and EINPROGRESS. It is intended for use
with the Unicorn and Rainbows! Rack servers, but may be used by other
applications (that run on Unix-like platforms).



Related Topics



Leave a reply



Submit