[英]PostgreSQL installation fails with macOS Big Sur(M1)
I am struggling to install PostgreSQL on my macOS Big Sur with M1 chip.我正在努力在带有 M1 芯片的 macOS Big Sur 上安装 PostgreSQL。 These are the message I get when I try to install PostgreSQL in the last step.
这些是我在最后一步尝试安装 PostgreSQL 时收到的消息。 I tried installing version 12, 11, 10. Anyone knows how to solve this problem?
我尝试安装版本 12、11、10。有人知道如何解决这个问题吗?
There is a permissions issue produced by Big Sur sec policies. Big Sur sec 策略产生了权限问题。 https://pgsnake.blogspot.com/2020/11/macos-big-sur-upgrade-breaking.html
https://pgsnake.blogspot.com/2020/11/macos-big-sur-upgrade-break.html
This will happen if you're installing in the default location, which in this case is Library.如果您在默认位置(在本例中为库)安装,则会发生这种情况。 I was struggling with this for a few days and found that if I define my own installation path not located in the Library folder(say some folder in my Desktop), I was able to install without issue.
我为此苦苦挣扎了几天,发现如果我定义自己的安装路径不在库文件夹中(比如我的桌面中的某个文件夹),我可以毫无问题地安装。
Give that a try and see if it works for you.试一试,看看它是否适合你。
Edit: Be sure to delete all previous failed installations if any exist.编辑:如果存在,请务必删除所有以前失败的安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.