I am not able to install eventmachine
Ok I know this has been asked quite a lot, but no solutions I found has helped me so far.So I posted here as a last resort.
I had the same problem in linux.
I solved it by upgrading ruby to ruby-2.2.1
.
The above answer on how to compile did not work for me, as I would get the "cannot load such file" message. I resolved this problem by running the gem build eventmachine.gemspec
from a git checkout of the eventmachine repo.
https://github.com/eventmachine/eventmachine/tree/v1.0.3
You should be able to see that the size of the .gem file is much greater as it actually includes the proper code.
You can try this answer here: Rails - cannot run app: Unable to load the EventMachine C extension;
The Accepted answer to this question works. But you'll have other problems as shown in the comments below.
Follow the solution by suda in the link, you'll be fine.
(Actually, it's basically compiling and installing gem from the master github code repo. I was surprised they haven't pushed the issue fix into master yet, since they're aware of it.)