Bundle install: ERROR: Failed to build gem native extension. nio4r gem

前端 未结 7 562
刺人心
刺人心 2021-02-02 15:04

I\'m currently working on a project using:

  • rvm 1.26.11
  • ruby 2.2.1p85

I tried to run bundle install but keep getting the follow

7条回答
  •  情话喂你
    2021-02-02 15:32

    If you are working on Mac OSX above version 10.11.x, the following approach worked for me:

    gem install nio4r -v '1.1.0' -- with-cflags="-std=c99"
    

提交回复
热议问题