postgresql - 如何在 Big Sur Apple M1 上安装 pg_cron?
问题描述
- 我正在尝试在本地机器 Big Sur M1 上安装 pg_cron 以进行开发https://github.com/citusdata/pg_cron
- 我找不到任何关于如何在 M1 上安装它的说明
- sudo yum install -y pg_cron_12 不起作用
- sudo apt-get -y install postgresql-12-cron 也不起作用
- 我的 PostgreSQL 版本是 13.4,如何安装 pg_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 头文件;必须以艰难的方式找出其他依赖项,因为文档对它们保持沉默。
推荐阅读
- python - 在 AWS GPU 云上执行 python 脚本
- android - 来自 URL 的视频适用于 Android 4 但不适用于 Android 9
- javascript - 无法使用 document.getElementById() 从 HTML 中获取价值;
- .net - Entity Framework DB Connection的动态变化的连接字符串
- html - How to avoid overlapping text in two paragraphs side by side
- python - 获取文件夹中所有文件的绝对路径,无需遍历子文件夹
- azure - 在 Azure API 管理中解密不记名令牌以获取 acr_values
- dart - Flutter 中的闹钟或定时通知
- c++ - 如何在 c++ 中为 tensorflow-lite 设置图像输入?
- reactjs - 使用 Draft-js 时传递给孩子后缺少道具