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).
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). 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.
Related Topics
How to Get Records Created at The Current Month
In Ruby, How to Be Warned of Duplicate Keys in Hashes When Loading a Yaml Document
Regex That Matches Valid Ruby Local Variable Names
How Does String.Unpack Work in Ruby
Error Installing Ruby in Yosemite
Ruby Fails on Osx Lion with Rbenv
How Can Multiple Trailing Slashes Can Be Removed from a Url in Ruby
Ruby/Active Record: Custom Sorting Order
What Is The Ruby Equivalent to This Curl Request
Without Converting to a String, How Many Digits Does a Fixnum Have
What Is 'stringify_Keys' in Rails and How to Solve It When This Error Comes
Using Rails with Paperclip and Swfupload
How to Change "3 Errors Prohibited This Foobar from Being Saved" Validation Message in Rails
Binding to Networking Interfaces in Ruby
Belongs_To Presence in Rails 5 Not Working