try to run
yum install libffi-devel
before calling rvm
You need install the library before installing ruby