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!
Error installing eventmachine gem
Try installing openssl and libstdc++.
If you are using rvm and have installed ruby in single user mode, you should omit sudo.
Can you paste the complete log of the error? Would be easier to answer your question with that.
UPDATE
Please refer to this answer https://stackoverflow.com/a/17386686/846970 in another stackoverflow thread and let me know if it works.
Ruby gem eventmachine unable to install
The problem was solved with help from the thread that @GraemeMcLean mentions in the comments above ( Eventmachine gem install fail )
This was a weird workaround though, and the authors of the gem should really fix this.
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.
Related Topics
Flutter Pod Install Problem - Undefined Method 'Each_Child' For #≪Dir:0X00007Fa6F7E2Ec80≫
Fork Child Process with Timeout and Capture Output
Is This the Best Way to Unescape Unicode Escape Sequences in Ruby
How to Intercept Method Call in Ruby
Gem Install Fails with Openssl Failure
Nested Models and Parent Validation
Read Binary File as String in Ruby
How to Avoid Trailing Empty Items Being Removed When Splitting Strings
Can't Install Ruby on Rails with Rvm on Ubuntu 13.04
Passing Multiple Code Blocks as Arguments in Ruby
Rescue in Rbuf_Fill': Timeout::Error (Timeout::Error)