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

后端 未结 22 1710
闹比i
闹比i 2020-12-02 06:30

I just installed posgresql with homebrew and when I go on to type the command

psql

I get the following error:

dyld: Library         


        
相关标签:
22条回答
  • 2020-12-02 06:46

    The following commands worked for me:

    brew reinstall postgresql
    brew postgresql-upgrade-database
    
    0 讨论(0)
  • 2020-12-02 06:49

    Another way to fix psql is update postgresql just running brew upgrade postgresql since the newest version will use readline 7 version.

    0 讨论(0)
  • 2020-12-02 06:49

    I tried all the previews answers, and nothing worked. The only thing that really worked for me was:

    brew link postgresql

    0 讨论(0)
  • 2020-12-02 06:50

    This worked for me

    brew switch readline
    

    This would display the versions you have installed. Pick one out of them. I picked 7.0.5

    I then ran

    brew switch readline 7.0.5
    

    The readline version got updated, and psql ran smoothly.

    0 讨论(0)
  • 2020-12-02 06:50

    The solution is to force the linking of readline again.

    brew remove readline
    brew install readline
    brew link readline --force
    
    0 讨论(0)
  • 2020-12-02 06:51

    If you don't have readline installed, first install it:

    brew install readline

    For me, I was getting this error, even though I had readline installed. Reinstalling readline did the trick:

    brew reinstall readline
    
    0 讨论(0)
提交回复
热议问题