ROR 3.1: package update failure (eventmachine gem)

Please help me deal with the ligament and gem dependencies.

RoR on Windows 7. I try to start a package update, but during the update process I get:

Italling eventmachine (0.12.10) with native extensions Unfortunately, a fatal error occurred. Report this bug to the Bundler question https://github.com/carlhuda/bundler/issues so that we can fix this. Thank you C: /RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb: 529: in `rescue in block in build_extensions': ERROR: Failed to create gem native extension. (Gem :: Installer :: ExtensionBuildError) ..

The package update will stop at this point.

Thin web server requires Eventmachine. I installed the event machine manually: gem install eventmachine --pre

in my gemfile i have:

gem 'thin' (nothing about eventmachine)

after installing / updating the package in my gemfile.lock:

...
eventmachine (1.0.0.beta.4.1-x86-mingw32)
...
thin (1.2.11-x86-mingw32)
      daemons (>= 1.0.9)
      eventmachine (>= 0.12.6)
      rack (>= 1.0.0)
..
DEPENDENCIES
      eventmachine
      rails (= 3.1)
      ....
      thin

if I run "bundle install", its ok

if I start the server (thin start) - it starts normally.

+5
source share
1 answer

I solved it. you need to lock the version in gemfile to tell the package that I need the version that I:

gem 'eventmachine', "1.0.0.b.4.4

EDIT: (11/14/2012). The gem version is no longer a beta version. You will no longer have problems installing the gem. :)

+4
source

All Articles