railsで Sorry, you can't use byebug without Readline ていうエラーになるとき
$ bundle exec rails s -b 0.0.0.0 Sorry, you can't use byebug without Readline. To solve this, you need to rebuild Ruby with Readline support. If using Ubuntu, try `sudo apt-get install libreadline-dev` and then reinstall your Ruby.
brew upgrade
とかでreadlineのバージョンが変わってしまったときに、readlineに依存しているgemがあると起きるエラーらしい。
$ ln -s /usr/local/opt/readline/lib/libreadline.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
今回はこれで解決した。
上記のissueであがっていた別の解決策としては、
- rb-readlineをGemfileに追加する
- rubyを再インストールする
とか。