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

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

    Most often in Ruby-applications, this is caused by gems that have extensions (the gems saying "Building native extensions.."), that are built using a specific version of, in this case, readline.

    Basically, there are two solutions:

    Either, you can symlink version 8 of the gem, to the version missing. This will work in many cases, but if backwards compatibility is broken, it will not.

    Or, if the gem actually supports version 8, you can reinstall that specific gem, or "pristine" it by running gem pristine --all.

    EDIT: In scope of your "what I've tried", reinstalling PostgreSQL, is also one of the binaries, built using a specific version, that may also require a rebuild, to work with a system library, such as readline.

提交回复
热议问题