在 Mac 上安裝 Postgres 時出錯

在 Mac 上安裝 Postgres 時出錯

我正在嘗試使用brew 在 Mac 上安裝 Postgres,但由於某種原因它無法完成安裝並顯示以下錯誤。

「initdb:檔案「/usr/local/share/postgresql/postgres.bki」不存在這可能表示您的安裝已損壞或使用呼叫選項 -L 識別了錯誤的目錄。警告:安裝後步驟未執行成功完成」

答案1

這已經在這裡解決了https://stackoverflow.com/questions/48291594/unable-to-install-postgresql-on-my-mac-os-x-machine-via-homebrew

chown -R user/usr/local/lib/pkgconfig

然後brew link postgres

initdb /usr/local/var/postgres -E utf8

相關內容