rails console doesn't load due to libreadline

前端 未结 10 645
心在旅途
心在旅途 2020-12-02 15:12

I have recently reinstalled ruby 2.1.2 like so since I wanted to install a gem (ruby-debug-ide)

sudo rvm reinstall 2.1.2 --disable-binary --with         


        
10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 15:38

    Ran across this today, to solve it I did:

    brew rm -f readline

    brew install readline

    brew link readline --force

    Hope it helps.

    EDIT: I recently ran into this problem again (after downgrading Ruby) since I wrote this, and I now prefer @califrench's solution from the comments below:

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

提交回复
热议问题