This works even after compiling Ruby, so no need to recompile... If you're wondering what readline is then this quote from the project homepage sums it up in one sentence:
"The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in."