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

前端 未结 7 533
刺人心
刺人心 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:48

    bundle config build.nio4r --with-cflags="-std=c99"
    bundle install
    

    works for me

提交回复
热议问题