【发布时间】:2018-04-30 02:42:24
【问题描述】:
我正在尝试在 Ubuntu 14.04 上安装 postgreSQL-9.6.4。但是当我运行 'initdb' 来创建数据库集群时,它会显示错误。
$ ./configure --prefix=/path/to/install
$ make
$ make install
$ initdb -U user1 -D /path/to/install/data
当我运行 'initdb' 时,它显示以下错误:
Aborted (core dumped)
child process exited with exit code 134
initdb: removing contents of data directory "/path/to/install/data"
有什么帮助吗?
【问题讨论】:
-
如果您是从源代码构建,通常最好在安装之前运行
make check(这适用于您构建的任何东西......) -
是的,我运行了
make check,它显示pg_regress: initdb failed -
$ initdb -U user1user1 是 postgres 二进制文件的所有者吗? -->> 以 user=postgres 身份运行 initdb