A Micro Toolbox

ソフトウェアのニッチな問題の対処記録です

pryを動かそうとしたらReadlineがないとのエラー

CentOS 6.4でとのpryを動かそうとしたらReadlineがないエラーになった。

$ pry
Sorry, you can't use Pry without Readline or a compatible library.
Possible solutions:
 * Rebuild Ruby with Readline support using `--with-readline`
 * Use the rb-readline gem, which is a pure-Ruby port of Readline
 * Use the pry-coolline gem, a pure-ruby alternative to Readline

Rubyの再コンパイルに時間がかかるので、今回は gem install rb-readline で解決。