无法在MacOS上安装PG Partman-返回错误`丢失分隔符'

发布于 2025-01-21 21:00:36 字数 1111 浏览 2 评论 0原文

我正在尝试安装 pg_partman 在我的Mac上。我尝试过M1 Mac和Intel Mac。当我运行make installmakefile:27:***丢失分隔符时,他们俩都会返回以下错误。停止。

第27行包含:

sql/$(EXTENSION)--$(EXTVERSION).sql: $(sort $(wildcard sql/types/*.sql)) $(sort $(wildcard sql/tables/*.sql)) $(sort $(wildcard sql/functions/*.sql)) $(sort $(wildcard sql/procedures/*.sql))

此错误通常是由于空格而不是标签引起的。但是,当我运行时,我会遇到此错误,然后在上进行pg_partman版本的任何上的任何。我打开了问题与PG_PARTMAN团队一起安装,但我相信他们正在Linux计算机上运行它。

我认为这可能是由于我的M1 Mac造成的,但是当我在Intel Mac上运行时,我会遇到相同的错误。我完全亏损了。 下方的机器详细信息

MACOS MONTEREY

:12.3.1 哪个制造/usr/bin/make

make -version

GNU制造3.81版权(C)2006 Free Software Foundation,Inc。 是免费软件;请参阅复制条件的来源。没有 保修单;甚至不是针对特定的适销性或健身 目的。

这个为i386-Apple-darwin11.3.0

构建的程序

I am trying to install pg_partman on my Mac. I have tried both my M1 mac and Intel mac. Both of them return the following error when I run make install: Makefile:27: *** missing separator. Stop.

Line 27 contains:

sql/$(EXTENSION)--$(EXTVERSION).sql: $(sort $(wildcard sql/types/*.sql)) $(sort $(wildcard sql/tables/*.sql)) $(sort $(wildcard sql/functions/*.sql)) $(sort $(wildcard sql/procedures/*.sql))

This error is usually due to spaces instead of tabs. However I get this error when I run make install on any of the released versions of pg_partman. I opened an Issue with the pg_partman team and they have no issues running make install, but I believe they are running it on a Linux machine.

I thought it might be due to my M1 mac but when I run on my Intel mac I get the same error. I'm at a complete loss. Machine details below

MacOS Monterey: 12.3.1

which make: /usr/bin/make

make --version:

GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This
is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

This program built for i386-apple-darwin11.3.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神魇的王 2025-01-28 21:00:36

中使用sudo sudo make install修复了我的问题。

Using sudo in sudo make install fixed my issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文