have you checked the log mkmf.log as it was recommended in the error you've included?
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.