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のバージョンが変わってしまったときに、rea…