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

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

    I solved it with:

    sudo apt-get install libmysqlclient-dev
    sudo apt-get install libpq-dev
    sudo apt-get install libsqlite3-dev
    sudo apt-get install libev-dev
    rvm use 2.0.0
    Reboot pc
    

    If I run rails -v shows me:

    • Rails 3.2.17

    And now I can make Bundle install

    I think the rails version was in conflict. I don't know why, maybe anyone can explain me.

提交回复
热议问题