Eventmachine gem install fail

前端 未结 9 1651
耶瑟儿~
耶瑟儿~ 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:35

    I got an error as below


    C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\eventmachine-1.0.3>gem build eventmachine.gemspec Invalid gemspec in [eventmachine.gemspec]: No such file or directory - git ls-files

    ERROR: Error loading gemspec. Aborting.

    However, I kept the project.h opened in textpad and tried to do gem install eventmachine. At one point, textpad will ask a confirmation to reload project.h as the new file is fetched from gem install command.. just give reload and comment the line //typedef int pid_t;.. Then the compilation went through..

    basically, it takes a while to start the compilation after fetching the gem project files. Just use that time to comment htis line.. It worked for me.. may not work for everyone.

    Cheers!

提交回复
热议问题