EventMachine gem workaround results in ruby ​​DLL file error, Windows 7

After cloning my first Rails 3.1.1 application, my first install of the package suffocated in the eventmachine 0.12.10 gem. (I am running Windows 7 32 bit)

I also use a thin gem.

I found this post that had the same issue.

What version of eventmachine can run on Windows?

What I integrated with this line in my gemfile:

gem "eventmachine", ">= 1.0.0.beta"

This allowed to start the installation of the package, but when I start the rails server, I get a Ruby popup with the ruby.exe heading - System Error and the text

The program can't start because libgcc_s_sjlj-1.dll is missing from your computer.  Try reinstalling the program to fix this problem.

After I click OK, I get this message in the console

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'

followed by a long stack trace (request to make sure this helps).

, EventMachine gem ++. MinGW 32- Windows 7, MinGW\bin PATH.

bin, libgcc_s_sjlj-1.dll , . 2009 , , .

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539033

, .

+5
3

,

require "em/pure_ruby"

config/application.rb

, .

+5

gem

gem 'eventmachine', '1.0.0.beta.4.1'

, unix, 1.0.0.beta.4.

0

This is probably due to the fact that eventmachine is dynamically associated with intermediate dlls.

You can:

require 'devkit'

at the top of your script. This will temporarily improve your path using the path to the middle devkit.

Source

0
source

All Articles