最近、OSX 10.7 にアップグレードしたところ、psql サーバーに接続しようとすると Rails のインストールが完全に失敗しました。を使用してコマンドラインから実行すると
psql -U postgres
完全に正常に動作しますが、同じユーザー名とパスワードで Rails サーバーまたはコンソールを実行しようとすると、このエラーが発生します
...activerecord-3.0.9/lib/active_record/connection_adapters/postgresql_adapter.rb:950:in `initialize': could not connect to server: Permission denied (PGError)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
何が起こっているのかについてのアイデアは、非常に役立ちます! ありがとう!