我剛將我的Macbook更新爲Mountain Lion,但現在postgresql無法正常工作。我收到以下錯誤消息時我讓導軌服務器上運行:在Mountain Lion上升級後postgresql不起作用
could not connect to server: No such file or directory (PG::Error)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
-UPDATE-現在,我得到了以下錯誤消息:
$ rails s
=> Booting Mongrel
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Started GET "/" for 127.0.0.1 at 2012-07-29 11:54:46 +0200
PGError (could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (fe80::1) and accepting
TCP/IP connections on port 5432?
):
@Chiyou - 這與內核包無關 - OSX不是Linux – Mark 2012-07-28 16:19:06
@Chiyou - 實際上它更簡單,不使用內核:) - 請您刪除您的註釋,以便我們可以重新開始,除了找到mkmf.log,因爲這裏有太多評論 – Mark 2012-07-28 16:28:42
@ nadine1988:重新安裝紅寶石:http://stackoverflow.com/questions/11711394/pg-gem-0-14-0-on-mountain-lion-fails – Bytemain 2012-07-29 22:25:00