# Cannot install eventmachine

**URL:** <https://rubytalk.org/t/cannot-install-eventmachine/44540>\
**Category:** ruby-talk\
**Created:** [16 February 2008 01:19 UTC](https://rubytalk.org/t/cannot-install-eventmachine/44540 "2008-02-16T01:19:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Junkone](https://rubytalk.org/u/Junkone)\
**Post date:** [16 February 2008 01:19 UTC](https://rubytalk.org/t/cannot-install-eventmachine/44540/1 "2008-02-16T01:19:57Z")

</div>

i cannot install event machine. i get error. i tried all the options.

E:\Documents and Settings\Trade\>gem install eventmachine  
Select which gem to install for your platform (i386-mswin32)  
1. eventmachine 0.10.0 (ruby)  
2. eventmachine 0.9.0 (ruby)  
3. eventmachine 0.8.1 (i386-mswin32)  
4. eventmachine 0.8.1 (ruby)  
5. Skip this gem  
6. Cancel installation

> 1

Building native extensions. This could take a while...  
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.

ruby extconf.rb install eventmachine  
checking for windows.h... no  
\*\*\* 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:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=e:/ruby/bin/ruby

Gem files will remain installed in e:/ruby/lib/ruby/gems/1.8/gems/  
eventmachine-0.10.0 for inspection.  
Results logged to e:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/  
ext/gem\_make.out

---

<div class="post-metadata">

**Author:** ![Bill\_Kelly](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Bill\_Kelly](https://rubytalk.org/u/Bill_Kelly)\
**Post date:** [16 February 2008 01:25 UTC](https://rubytalk.org/t/cannot-install-eventmachine/44540/2 "2008-02-16T01:25:40Z")

</div>

> i cannot install event machine. i get error. i tried all the options.
> 
> E:\Documents and Settings\Trade\>gem install eventmachine  
> Select which gem to install for your platform (i386-mswin32)  
> 1. eventmachine 0.10.0 (ruby)  
> 2. eventmachine 0.9.0 (ruby)  
> 3. eventmachine 0.8.1 (i386-mswin32)  
> 4. eventmachine 0.8.1 (ruby)  
> 5. Skip this gem  
> 6. Cancel installation
> 
> > 1
> 
> Building native extensions. This could take a while...  
> ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> &nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> 
> ruby extconf.rb install eventmachine  
> checking for windows.h... no  
> \*\*\* extconf.rb failed \*\*\*

What happens when you try #3 ?

Regards,

Bill

> **···**
>
> From: "Junkone" \<junkone1@gmail.com\>

---

<div class="post-metadata">

**Author:** ![Luis\_Lavena1](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Luis\_Lavena1](https://rubytalk.org/u/Luis_Lavena1)\
**Post date:** [16 February 2008 01:54 UTC](https://rubytalk.org/t/cannot-install-eventmachine/44540/3 "2008-02-16T01:54:56Z")

</div>

You need a compiler to build native extensions. more precisely, you  
need VC6 to build Ruby C extensions like eventmachine.

I'll suggest you ask the gem maintainers for updates of version 0.10.

Regards,

> **···**
>
> On 15 feb, 23:16, Junkone \<junko...@gmail.com\> wrote:
> 
> > i cannot install event machine. i get error. i tried all the options.
> > 
> > E:\Documents and Settings\Trade\>gem install eventmachine  
> > Select which gem to install for your platform (i386-mswin32)  
> > 1. eventmachine 0.10.0 (ruby)  
> > 2. eventmachine 0.9.0 (ruby)  
> > 3. eventmachine 0.8.1 (i386-mswin32)  
> > 4. eventmachine 0.8.1 (ruby)  
> > 5. Skip this gem  
> > 6. Cancel installation\> 1
> > 
> > Building native extensions. This could take a while...  
> > ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)  
> > &nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> > 
> > ruby extconf.rb install eventmachine  
> > checking for windows.h... no  
> > \*\*\* 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:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=e:/ruby/bin/ruby
> > 
> > Gem files will remain installed in e:/ruby/lib/ruby/gems/1.8/gems/  
> > eventmachine-0.10.0 for inspection.  
> > Results logged to e:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.10.0/  
> > ext/gem\_make.out
> 
> --  
> Luis Lavena
