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
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!