PostgreSQL Mountain Lion socket issue

前端 未结 4 1361
旧巷少年郎
旧巷少年郎 2020-12-25 13:39

I\'ve been trying to set up PostgreSQL on my system (OSX 10.8, clean install), but I\'m running into trouble with using psql, createdb, etc. I\'ve

4条回答
  •  悲哀的现实
    2020-12-25 13:56

    I had the same problem, and after doing what you'd done I also had to change my path so that /usr/local/bin (where Homebrew puts everything) comes before /usr/bin. I don't know why this isn't the default anymore, but it's easy to change.

    sudo vi /etc/paths
    

    then edit the file to have the /usr/local/bin line at the top.

    Or alternately if you just want this change to happen for your specific user account, edit your ~/.bash_profile file:

    touch ~/.bash_profile
    vi ~/.bash_profile
    

    and add this line: export PATH="/usr/local/bin:$PATH"

    then run source ~/.bash_profile for the changes to take effect.

提交回复
热议问题