There are similar questions:
- `require’: no such file to load — mkmf (LoadError)
- Failed to build gem native extension (mkmf (LoadError)) – Ubuntu 12.04
Usually, the solution is:
sudo apt-get install ruby-dev
Or, if that doesn’t work, depending on your ruby version, run something like:
sudo apt-get install ruby1.9.1-dev
Should fix your problem.
Still not working? Try the following after installing ruby-dev:
sudo apt-get install make