Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib

后端 未结 11 1711
时光取名叫无心
时光取名叫无心 2021-01-30 01:57

When I try running rails console I get this error:

/Users/TuzsNewMacBook/.rvm/gems/ruby-2.3.7/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_         


        
11条回答
  •  梦如初夏
    2021-01-30 02:29

    Background: This has happened when I tried to install tig, but I think this is a common issue that you may have that you need to manually link the installed software into the right path that another software wants.

    If you can not find readline installed on your Mac, you should run

    brew install readline
    

    After you installed deadline, brew will ask you to link it. But actually you can not link by running

    brew link readline
    

    Even you can not link by running

    sudo brew link readline
    

    Mac OS will warn you this is extremely dangerous and stop you to do.

    The Latest version of readline is version 8, so you will see the error message like

    Library not loaded: /usr/local/opt/readline/lib/libreadline.8.dylib
    

    The brew installed deadline at

    /usr/local/Cellar/readline/8.0.4
    

    So you have to manually link it to the place that your software wants by using command ls

    ln -s /usr/local/Cellar/readline/8.0.4 /usr/local/opt/readline
    

    Enjoy!

提交回复
热议问题