I have installed rails on centos many times, but never succeed, until last weekends, so I write this for memory.