How to Install Ruby Enterprise Edition and Passenger Phusion (mod_rails) on CentOS/RHEL x86_64 →
INSTALL SYSTEM PREREQUISITES
Install the prerequisite development headers. If this is a production system, make note of all the packages installed, for future removal.
# yum install...