Common Pitfalls When Installing Ruby on Rails
Encountered issues during Ruby on Rails installation. Slowly collecting and sharing them.
Error: Failed to build gem native extension
ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find
header files for ruby at /usr/share/include/ruby.h
Solution:
On CentOS: yum install ruby-devel
On Ubuntu: apt-get instal ...
Posted on Wed, 12 Aug 2026 16:56:39 +0000 by baccarak