在我的Mac上安装postgres 10时遇到问题,版本10.12.5。
我尝试过安装两种方式:
(1) Downloading Postgres.app
(2) `brew install postgresql`
并尝试为initdb
手动运行这些命令的一系列变体:
$ initdb /Applications/Postgres.app/Contents/Versions/latest/bin/ver-10
$ initdb /usr/local/var/postgres -E utf8
所有产生相同的错误FATAL: could not create semaphores: Invalid argument
。
完整追踪:
The files belonging to this database system will be owned by user "foo".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /usr/local/var/postgres ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... 2018-03-12 20:49:58.654 PDT [98144] FATAL: could not create semaphores: Invalid argument
2018-03-12 20:49:58.654 PDT [98144] DETAIL: Failed system call was semget(1, 17, 03600).
child process exited with exit code 1
initdb: removing contents of data directory "/usr/local/var/postgres"
我不确定FATAL: could not create semaphores: Invalid argument
是什么意思。我已经看到很多其他与空间不足相关的答案,但不是这个。
提前致谢!