Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 无法通过自制在mac os x计算机上安装postgresql_Macos_Postgresql_Terminal_Homebrew - Fatal编程技术网

Macos 无法通过自制在mac os x计算机上安装postgresql

Macos 无法通过自制在mac os x计算机上安装postgresql,macos,postgresql,terminal,homebrew,Macos,Postgresql,Terminal,Homebrew,我试图通过mac os上的终端安装postgres。我用自制软件安装postgres。 在安装过程中,我遇到了以下错误 错误:brew链接步骤未成功完成 公式已生成,但未符号链接到/usr/local 无法符号链接共享/man/man3/SPI_connect.3“ 我还得到了关于initdb的错误 “initdb:file”/usr/local/share/postgresql/postgres.bki”不存在 这可能意味着您的安装已损坏或已识别 调用选项为-L的目录错误。 警告:安装后步骤未

我试图通过mac os上的终端安装postgres。我用自制软件安装postgres。 在安装过程中,我遇到了以下错误

错误:
brew链接
步骤未成功完成 公式已生成,但未符号链接到/usr/local 无法符号链接共享/man/man3/SPI_connect.3“

我还得到了关于initdb的错误

“initdb:file”/usr/local/share/postgresql/postgres.bki”不存在 这可能意味着您的安装已损坏或已识别 调用选项为-L的目录错误。 警告:安装后步骤未成功完成 您可以使用
brew postinstall postgresql
重试

安装后,我无法运行任何postgres命令。我真的很感激任何帮助,因为我是博士后的新手。请稍作解释


谢谢大家!

不确定这个解决方案是否是最好的,但到目前为止,这是唯一的一个

注意:我是在macOS环境下做的

我已经把不允许写的目录翻了一遍。(
chown-R user
/usr/local/lib/pkgconfig
/usr/local/lib/pkgconfig`(假设dir无论如何都应该是我的——因为它在usr/local中)

我跑
brew链接postgres
-因此需要的链接就在那里


然后,
initdb/usr/local/var/postgres-eutf8
工作得很好。

对我来说,这是一个没有断开链接的postgres的旧版本。