Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在docker中安装postgresql扩展的问题_Postgresql_Docker - Fatal编程技术网

在docker中安装postgresql扩展的问题

在docker中安装postgresql扩展的问题,postgresql,docker,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 gc

我有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.