rails 5.0.0 when installing “nio4r” : Failed to build gem native extension

后端 未结 9 1757
青春惊慌失措
青春惊慌失措 2020-12-10 05:30

Here is the logs: http://pastebin.com/CAgur9xd

Installing nio4r 1.2.1 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extensi         


        
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 06:23

    Had this same issue on Ubuntu 16.04. What I did to fix this :

    Remove Gemfile.lock : sudo rm Gemfile.lock Installed Ruby-Dev:

    sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update sudo apt-get install ruby2.4-dev

    and the important step : REBOOT!

提交回复
热议问题