我正在關注最近的RailsCast設置PostgreSQL,但我無法運行initdb /usr/local/var/postgres
命令。每次我運行它,我得到這個錯誤:試圖在我的環境中獲得Postgres設置,但似乎無法獲得intidb的權限
The files belonging to this database system will be owned by user "Construct".
This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".
creating directory /usr/local/var/postgres ... initdb: could not create directory "/usr/local/var": Permission denied
您已經解決您的問題? – swasheck
我有同樣的問題...還沒有找到解決方案。 – fccoelho