script/consoleでエラー

`require': no such file to load -- readline (LoadError)

CentOSでscript/consoleを実行するとのようなエラーが出る。この場合、

# yum install readline-devel
# cd /usr/local/src/ruby/ruby-1.8.6-p111/ext/readline/
# ruby extconf.rb
# make
# make install

してやればOK。