在docker中安装postgresql扩展的问题

时间:2020-02-14 13:12:48

标签: postgresql docker

我有docker文件

FROM postgres:10.10

ARG PATHMAN_VERSION=1.5.8
ARG PG_DEV_VERSION=10

RUN set -x \
    && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget unzip make postgresql-server-dev-$PG_DEV_VERSION gcc libc6-dev libssl-dev libkrb5-dev \
    && wget -O /tmp/pg_pathman.zip https://github.com/postgrespro/pg_pathman/archive/$PATHMAN_VERSION.zip \
    && unzip /tmp/pg_pathman.zip  -d /tmp \
    && cd /tmp/pg_pathman-$PATHMAN_VERSION \
    && make USE_PGXS=1 install \
    && rm -rf /var/lib/apt/lists/* && apt-get purge -y --auto-remove ca-certificates wget unzip make postgresql-server-dev-$PG_DEV_VERSION gcc libc6-dev libssl-dev libkrb5-dev \
    && rm -rf /tmp/pg_*

我想安装pg_pathman扩展名,但是得到了

+ make USE_PGXS=1 install
Makefile:83: /usr/lib/postgresql/12/lib/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target '/usr/lib/postgresql/12/lib/pgxs/src/makefiles/pgxs.mk'.  Stop.

0 个答案:

没有答案