1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac(Mojave)でRails起動すると Sorry, you can't use byebug without Readline エラー

Posted at

背景

ローカルMac(Mojave)でRails4.6系。rubyを2.3系 -> 2.6系にあげて起動したところ以下のエラー発生。

   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で入れたreadlineのバージョンが8.0になっているのがだめみたいだった。7.05にスイッチしたら動いた。

参考: https://github.com/deivid-rodriguez/byebug/issues/289#issuecomment-455963200

brewのバージョンの下げ方

この記事めっちゃわかりやすかった↓
Homebrewで旧バージョンのパッケージをインストールしたい

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?