Return to readline version 6.x in Homebrew to fix Postgresql?

后端 未结 6 1210
孤独总比滥情好
孤独总比滥情好 2020-12-24 00:29

I\'m no Homebrew expert but I think it has \"upgraded\" me from readline version 6.x to 7.0 sometime after 9/15/16:

eat@eric-macbook:Homebrew$ brew info read         


        
6条回答
  •  情歌与酒
    2020-12-24 01:29

    NOTE: This answer might be outdated due to the changes in the branch (as reported by Andrew, the commit disappear)

    To those who still facing this issue but cannot download the readline 6.3.8 from the homebrew package. You can try this solution. (Refer from here)

    # Uninstall this incompatible version
    brew uninstall readline
    
    # Go to the local clone of homebrew-core
    cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core
    
    # Move to the homebrew-core revision that had 6.3.8
    git checkout 35fed817726f61a9d40c8420582f6fde59eb5f14
    
    # Re-install readline
    brew reinstall readline
    
    # Switch back to HEAD
    git checkout master
    
    # Pin readline so this can't happen again
    brew pin readline
    

提交回复
热议问题