Homebrew postgres broken

前端 未结 8 1704
野趣味
野趣味 2020-12-07 08:49

I installed Postgresql 9.4.0 installed on my Mac (10.10.1/Yosemite) using homebrew. It does not work.

I have created the softlink to /usr/local/opt/postgresql/homebr

8条回答
  •  一整个雨季
    2020-12-07 09:32

    After trying to install postgresql with Homebrew, I got this:

    Warning: postgresql-9.5.2 already installed, it's just not linked
    

    So I tried:

    brew link postgresql
    

    And got this error:

    Linking /usr/local/Cellar/postgresql/9.5.2... 
    Error: Could not symlink share/man/man3/SPI_connect.3
    /usr/local/share/man/man3 is not writable.
    

    It seemed to be a write permission matter, so I did:

    sudo chown -R `whoami` /usr/local/share/man/
    

    It did the trick because, then I was able to do (without error):

    brew link postgresql
    

提交回复
热议问题