Eventmachine install error

Hi!
I get error, when i try to install eventmachine.

C:\>gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
        ERROR: Failed to build gem native extension.

C:/Ruby191/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb
failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby191/bin/ruby
C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
to generate an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:427:in `try_compile'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:545:in `try_var'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:793:in `block in
have_var'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:670:in `block in
checking_for'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
in postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in `block in
postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:792:in `have_var'
        from extconf.rb:16:in `<main>'

Gem files will remain installed in
C:/Ruby191/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to
C:/Ruby191/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

Help me please!

···

--
Posted via http://www.ruby-forum.com/.

Read the output. It suggests you to look into
C:/Ruby191/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out.

···

On Fri, 2010-11-19 at 17:58 +0900, Ris Ris wrote:

Hi!
I get error, when i try to install eventmachine.

C:\>gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
        ERROR: Failed to build gem native extension.

C:/Ruby191/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb
failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby191/bin/ruby
C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
to generate an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:427:in `try_compile'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:545:in `try_var'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:793:in `block in
have_var'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:670:in `block in
checking_for'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
in postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:276:in `block in
postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
        from C:/Ruby191/lib/ruby/1.9.1/mkmf.rb:792:in `have_var'
        from extconf.rb:16:in `<main>'

Gem files will remain installed in
C:/Ruby191/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
Results logged to
C:/Ruby191/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out

Help me please!

Problem solved!
Success way:
1) install DevKit


2) gem install eventmachine --pre

···

--
Posted via http://www.ruby-forum.com/.