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

后端 未结 11 1621
时光取名叫无心
时光取名叫无心 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:44

    the error seems to be thrown when searching for /usr/local/opt/readline/lib/libreadline.7.dylib.

    Have you tried to symlink that?

    So something like:

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

    Just tried that on macOS Mojave, ruby 2.5.3p105 and Rails 5.2.2 and worked.

提交回复
热议问题