LoginSignup
0
0

More than 5 years have passed since last update.

環境コピーしてbundle installをvendor/bundleにしたらrails sで'sudo apt-get install libreadline-dev'の警告が出た

Last updated at Posted at 2017-08-21

いつもはbundle installだけで作業しているんだけど、ちょっとしたことを試したくて

$bundle install --path vendor/bundle

こちらを実行してみた

途中capybaraのwebkitで怒られるも、

brew upgrade
brew install qt@5.5
brew link --force qt@5.5

して解決

ようやくサーバー起動しようとしたら

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.

こんなエラー

調べて見てもlibreadline-devはinstallされている・・・

いろいろ調べていたら以下のコメント欄で「いいね」されまくってるコメント発見!
https://github.com/deivid-rodriguez/byebug/issues/289

ln -s /usr/local/opt/readline/lib/libreadline.dylib /usr/local/opt/readline/lib/libreadline.6.dylib

試したらうまくいった!

理解はしてないw

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