Ruby: problem installing EventMachine under Windows 7
EventMachine 0.12.10 is known to not work under Ruby 1.9.2 on Windows.
Please try latest 1.x pre-release versions:
gem install eventmachine --pre
If you're using with Thin, latest version of Thin works with it properly.
This has been discussed on RubyInstaller group several times.
Eventmachine gem install fail
I could install it, doing this steps:
1) tried a normal install:
gem install eventmachine
it fetched the version 1.0.3 of the gem, but failed in the make, because of a variable declaration conflit
2) edited the file:
c:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\eventmachine-1.0.3\ext\project.h
and commented the line 97
//typedef int pid_t;
for a more robust correction, checkout the solution here https://github.com/eventmachine/eventmachine/pull/450/files
3) then, i've opened command prompt, and went to the gem folder
c:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\eventmachine-1.0.3
and run:
gem build eventmachine.gemspec
You need git installed with the git.exe location in the PATH for this to work (such as C:\Users\YourUsername\AppData\Local\GitHub\PORTAB~1\bin).
4) it generated a eventmachine.gem file on the folder... So I've copied a file to a c:\tmp folder, and went to that folder and from there, I've typed:
gem install eventmachine-1.0.3.gem --local
And it installed successfully!
Jekyll eventmachine 1.2.7 error on bundle
I tried again, this time using ruby 2.7.1 instead of 2.7.2 and it worked.
I guess some update in ruby broke it, so for anyone stuck on this try using 2.7.1 or not the latest version of ruby.
Which version of eventmachine is able to work in windows?
I have Windows 7
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
eventmachine (1.0.0.beta.4.1 x86-mingw32)
Related Topics
How to Use Define_Method to Create Class Methods
Rails Each Loop Insert Tag Every 6 Items
Rails Engines Extending Functionality
Idiomatic Object Creation in Ruby
Putting French (Accented) Characters in Ruby File
In Ruby on Rails, Are '#Encoding: Utf-8' and 'Config.Encoding = "Utf-8"' Different
Database.Yml &References Not Working
How to Find a Min/Max with Ruby
Ruby on Rails Console Is Hanging When Loading
Nomethoderror When Trying to Invoke Helper Method from Rails Controller
Fibonacci Sequence in Ruby (Recursion)
How to Run All Tests With Minitest
Can't Access Rubygems - Possibly Due to Ssl
How to Create a Private Class Method
Is There a "Phpmyadmin" for Ruby on Rails
Ruby on Windows Causes Error Cannot Load Such File Bcrypt_Ext