首页 > 解决方案 > 如何在 Big Sur Apple M1 上安装 pg_cron?

问题描述

标签: postgresqlcronmacos-big-surapple-m1pg-cron

解决方案


您可能必须从源代码安装。该文档描述了:

git clone https://github.com/citusdata/pg_cron.git
cd pg_cron
# Ensure pg_config is in your path, e.g.
export PATH=/usr/pgsql-12/bin:$PATH
make && sudo PATH=$PATH make install

您需要安装 GNU make、C 编译器和 PostgreSQL 头文件;必须以艰难的方式找出其他依赖项,因为文档对它们保持沉默。


推荐阅读