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
Need Help on Reading Emails with "Mail" Gem in Ruby
How to Wait for System Command to End
International Chars Using Rspec with Ruby on Rails
Rails How to Tell If a Sidekiq Worker Is Done with Perform_Async
Permission Error When Trying to Install Rails (Osx)
Paperclip: Integration with Mailboxer Gem
Camelcase Instead of Snake_Case in Rails Db
Should I Move My Custom Methods to Model from Controller
How to Use Rspec to Test That a Model Using Paperclip Is Validating The Size of an Uploaded File
How to Get Meta Keywords Using Nokogiri
What Is Ruby's Stringio Class Really
Rails Parameters from Get/Post
Ruby 2.0 Bytecode Export/Import
Spawning an Independent Thread or Process in Ruby
Best/Most Elegant Way to Share Objects Between a Stack of Rack Mounted Apps/Middlewares
Proper Usage of Ruby Statement Modifiers
How to Make Http Delete Request in My Ruby Code Using Net::Http