Topic: Eventmachine giving problems in windows machines .....
I am struck with this wierd problem in windows when I am trying to use the thin server for my RoR application developed in ruby 1.9.1p376 version and rails 2.3.5 version and I have been facing quite some problems to get this up and running in my local box. i would like to explain tehe various problems I had encounterd. FYI, I am going to host my RoR application in a Windows server.
1. no such file or directory - rubyeventmachine ==> require 'rubyeventmachine' in line no. 66 of the eventmachine.rb file.
==> Really couldn't understand what this option should be changed to. Experimentally, had changed the ruby_eventmachine to pr_eventmachine and the symbol to :cascade option
2. After changing to pr_eventmachine ==> No such file or directory : uuidgen (pr_event_machine)
==>After some googling, installed the Microsoft SDK which has the UUidgen.exe which can solve the problem. Hard coded the `uuidgen` with `<PATH to the uuidgen.exe>` and the server was getting started.
3. The application starts fine, but fails with the error :
G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in `write_nonblock': A non-blocking
socket operation could not be completed immediately. (Errno::EWOULDBLOCK)
from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:587:in `eventable_write'
from G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.8-x86-mswin32-60/lib/pr_eventmachine.rb:371:in `block in crank_selectable
These things have been haunting me for quite some time. Please do suggest me what a missing here, what option should I select in point #1, and is there a rubyeventmachine.rb file to bedownloaded and included in any of the directories?
FYI, My full gem list are given below.
actionmailer (2.3.5, 2.2.2)
actionpack (2.3.5, 2.2.2)
activerecord (2.3.5, 2.2.2)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.8, 2.3.5, 2.2.2)
daemons (1.1.0, 1.0.3)
eventmachine (0.12.8 x86-mswin32-60)
fastthread (1.0.1 i386-mswin32)
mysql (2.8.1 x86-mswin32)
rails (2.3.5, 2.2.2)
thin (1.2.7 x86-mswin32)
And my gem environment is
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.1 (2009-12-07 patchlevel 376) [i386-mswin32]
- INSTALLATION DIRECTORY: G:/Softwares/Softwares/ruby-1.9.1/lib/ruby/gems/1.9.
- RUBY EXECUTABLE: G:/Softwares/Softwares/ruby-1.9.1/bin/ruby.exe
- EXECUTABLE DIRECTORY: G:/Softwares/Softwares/ruby-1.9.1/bin
- RUBYGEMS PLATFORMS:
- GEM PATHS:
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => [