无法安装PostgreSQL扩展pg_repack

时间:2019-07-23 07:33:09

标签: postgresql amazon-rds

我已经安装了PGXN Client,但是每次运行时

$ pgxn install pg_repack
  

make [1]:进入目录'/tmp/tmpniazqt/pg_repack-1.4.4/bin'gcc   -Wall -Wmissing-原型-Wpointer-arith -W声明后-Wendif标签-Wmissing-格式属性-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision = standard -Wno-format-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror = format-security -fno-omit-frame-pointer -I / usr / include / postgresql -DREPACK_VERSION = 1.4.4 -I。 -I./ -I / usr / include / postgresql / 11 / server -I / usr / include / postgresql / internal -Wdate-time -D_FORTIFY_SOURCE = 2 -D_GNU_SOURCE -I / usr / include / libxml2 -I / usr / include / mit-krb5 -c -o pg_repack.o pg_repack.c gcc -Wall -Wmissing-prototypes -Wpointer-arith   -W声明后声明-Wendif标签-Wmissing-格式属性-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision = standard -Wno-format-truncation -g -g -O -O2 -fstack-protector -strong -Wformat -Werror =格式安全-fno-omit-frame-pointer -I / usr / include / postgresql -DREPACK_VERSION = 1.4.4 -I。 -I./ -I / usr / include / postgresql / 11 / server -I / usr / include / postgresql / internal -Wdate-time -D_FORTIFY_SOURCE = 2 -D_GNU_SOURCE -I / usr / include / libxml2 -I / usr / include / mit-krb5 -c -o pgut / pgut.o pgut / pgut.c gcc -Wall -Wmissing-prototypes -Wpointer-arith   -W声明后声明-Wendif标签-Wmissing-格式属性-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision = standard -Wno-format-truncation -g -g -O -O2 -fstack-protector -strong -Wformat -Werror =格式安全-fno-omit-frame-pointer -I / usr / include / postgresql -DREPACK_VERSION = 1.4.4 -I。 -I./ -I / usr / include / postgresql / 11 / server -I / usr / include / postgresql / internal -Wdate-time -D_FORTIFY_SOURCE = 2 -D_GNU_SOURCE -I / usr / include / libxml2 -I / usr / include / mit-krb5 -c -o pgut / pgut-fe.o pgut / pgut-fe.c gcc -Wall -Wmissing-prototypes   -Wpointer-arith -W声明后声明-Wendif标签-Wmissing-格式属性-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision = standard -Wno-format-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror = format-security -fno-omit-frame-pointer pg_repack.o pgut / pgut.o pgut / pgut-fe.o -L / usr / lib / x86_64-linux-gnu- WL,-符号函数-WL,-z,relro -WL,-z,现在-L / usr / lib / llvm-6.0 / lib -L ​​/ usr / lib / x86_64-linux-gnu / mit-krb5 -Wl ,-按需-L / usr / lib / x86_64-linux-gnu -lpq -L / usr / lib / postgresql / 11 / lib -lpgcommon -lpgport -lpthread -lssl -lcrypto -lz -lrt -lcrypt -ldl -lm -o pg_repack / usr / bin / ld:找不到-lz collect2:错误:ld返回1退出状态   /usr/lib/postgresql/11/lib/pgxs/src/makefiles/pgxs.mk:430:配方   目标'pg_repack'失败的make [1]: * [pg_repack]错误1的make [1]:   离开目录'/tmp/tmpniazqt/pg_repack-1.4.4/bin'Makefile:35:   目标“全部”的配方制作失败:* [全部]错误2错误:命令   返回2:使PG_CONFIG = / usr / bin / pg_config全部

我还尝试通过下载pg_repack.zip进行安装,但仍然出现相同的错误。

我猜makefile中有一些需要编辑的东西。但我似乎无法指出它是什么。

提前谢谢!

0 个答案:

没有答案