Eventmachine gem install fail

前端 未结 9 1592
耶瑟儿~
耶瑟儿~ 2020-12-01 07:38

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.

相关标签:
9条回答
  • 2020-12-01 08:37

    I had the same problem in linux.

    I solved it by upgrading ruby to ruby-2.2.1.

    0 讨论(0)
  • 2020-12-01 08:38

    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.

    0 讨论(0)
  • 2020-12-01 08:40

    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.)

    0 讨论(0)
提交回复
热议问题