【问题标题】:How to install pg_cron on Big Sur Apple M1?如何在 Big Sur Apple M1 上安装 pg_cron?
【发布时间】:2021-09-13 05:42:27
【问题描述】:
  • 我正在尝试在我的本地计算机 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

【问题讨论】:

    标签: postgresql cron macos-big-sur apple-m1 pg-cron


    【解决方案1】:

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

    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 头文件;其他依赖项必须以艰难的方式找出来,因为文档对它们保持沉默。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多