【问题标题】:Cannot install cstore_fdw on docker postgres container无法在 docker postgres 容器上安装 cstore_fdw
【发布时间】:2019-08-29 22:08:08
【问题描述】:

尝试在 docker postgres 容器上安装 cstore_fdw 只是为了测试柱状功能,但我被困在构建/制作 cstore 存储库的点上。

操作系统是 debian 9,postgres 11,我已经安装了 make 和一些我需要的工具。

构建和运行 make cmd 的步骤失败了 bcz of postgres。可在此处的“建筑”部分找到:https://github.com/citusdata/cstore_fdw

目录
cstore 目录:/var/lib/postgresql/cstore_fdw/
pg配置目录:/var/lib/postgresql/data/postgresql.conf

在 cstore 目录我运行以下命令并收到以下错误,我不知道为什么。

PATH=/var/lib/postgresql/data/:$PATH make

Makefile:38: /usr/lib/postgresql/11/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory
Makefile:45: *** PostgreSQL 9.3 or 9.4 or 9.5 or 9.6 or 10 or 11 is required to compile this extension. Stop.

我也尝试过使用 make cmd 中的 pg bin 目录,我认为是 /usr/lib/postgresql/11/bin/,这会产生同样的错误。

感谢您的帮助

【问题讨论】:

    标签: postgresql docker cstore-fdw


    【解决方案1】:

    您的 docker 映像不包含构建基础架构 PGXS 的 PostgreSQL 扩展。

    您需要安装它和 PostgreSQL 头文件。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-21
    • 2020-10-17
    • 1970-01-01
    • 1970-01-01
    • 2018-03-25
    • 2017-09-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多