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).
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
Why Is the << Operation on an Array in Ruby Not Atomic
Ruby: How to Call Function Before It Is Defined
Trouble Installing Ruby 1.9.2 with Rvm MAC Os X
Ruby 'Gets' That Works Over Multiple Lines
How to Use Headless Chrome with Capybara and Selenium
How to Convert a Ruby Bigdecimal to a 2-Decimal Place String
Undefined Method 'Instance' for Capistrano::Configuration:Class
Call Next on Ruby Loop from External Method
Rails: Pundit::Authorizationnotperformederror
Marshal Ruby Hash with Default Proc - Remove the Default Proc
How to Programmatically Convert Mp3 to an Itunes-Playable Aac/M4A File
Product Orders Between 2 Users
How to Add Conditional Rubygem Requirements to a Gem Specification
Rails Gem to Break a Paragraph into Series of Sentences
Activerecord_Postgis_Adapter: Undefined Method 'Point' for Nil:Nilclass