0
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.

rails cをした時に、Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)というエラーが吐き出される

Posted at

開発環境

  • macOS Mojave 10.14.3
  • Ruby 2.5.0
  • Rails 5.2.2

問題

  • Railsを使っていて、 rails c でコンソールを開始しようとしたら、下記のようなエラーが吐き出された
Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)

原因

  • エラー文をよく見ると、「readlineが見つからないよ」的なことが書いてあったので、何かが不足しているレベルという認識であった

対応

  • とりあえずググって見ると、下記のような記事が見つかった
  • どうやら、原因は2つの目星があるそうで、1つは シンボリックリンクが正しく設定されていない 、もう1つは rb-readlineというgemがインストールされていない ぽいので、とりあえず後者を先に実行した

結果

  • 無事コンソールが動いた
  • 原因がいまいちハッキリできていないので、次に同じ現象が起きたら、シンボリックリンクを変更する方向で対応が必要そう
0
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
0
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?