にinitdbのは/ usr/localの/ var/postgresの私はエルキャピタンに自作経由のPostgreSQL 9.5をインストールした後initdb /usr/local/var/postgres
を実行しようとしていますが、私は以下の取得:エルキャピタン
The files belonging to this database system will be owned by user "kyledecot".
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".
Data page checksums are disabled.
fixing permissions on existing directory /usr/local/var/postgres ... initdb: could not change permissions of directory "/usr/local/var/postgres": Operation not permitted
cd /usr/local/var/postgres
しようとしたときに、私が取得:
cd: permission denied: /usr/local/var/postgres
私はこれを行うための適切な権限を持っていないようです。私はこれがエル・キャピタンのSystem Integrity Protectionで何かすることを前提としていますが、間違っている可能性があります。
これを修正するにはどうすればよいですか?
"post install"ではなく "postinstall"を使用する必要があります –