rails c not working in rails 5

前端 未结 5 1923
太阳男子
太阳男子 2021-02-07 10:45

On using the command in terminal inside a rails 5 application

rails c

the error thrown is given bellow. I have no idea what this means in a si

5条回答
  •  清歌不尽
    2021-02-07 11:24

    As a general approach if this error occurred due to updating readline with homebrew

    New version can be found by reading the output of brew install readline

    My output: readline 8.0.0 is already installed and up-to-date

    Old version can be found by load error

    My error (Note the 7): Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)

    ln -s new_version/path/to/readline original_version/path/to/readline
    

    In my case my command was

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

提交回复
热议问题