- Uninstall any RHEL packages associated with ruby (ruby, ruby-rdoc, ruby-ri, etc.
rpm -qa | grep rubywill give you the whole list) - Install the ruby source rpm (
rpm -i ruby-1.8.5-3.fc6.src.rpm) - Install any dependencies except for libX11-devel (the previous install step should give you the names of all the devel packages you need)
- Install xorg-x11-devel (
up2date xorg-x11-devel) to satisfy needed X11 files - build ruby (
rpmbuild -bb --nodeps /usr/src/redhat/SPECS/ruby.spec) - Install ruby (rpm -ivh /usr/src/redhat/RPMS/i386/ruby*)
You may want to specify a build target in the rpmbuild step, although I’m not sure how much performance gain you would get, especially if all the glibc libraries are i386.