0

I have compiled the dblink module ubder postgresql 8.2.19/contrib/dblink in my PC(fedora 16) but when I turn to the CentOS,it doesn't work,hints the message below:

gcc -m64 -O3 -funroll-loops -fargument-noalias-global -fno-omit-frame-pointer -g -finline-limit=1800 -std=gnu99  -Wall -Wmissing-prototypes -Wpointer-arith  -Wendif-labels -fno-strict-aliasing -fwrapv -I/home/build/builds/greenplum-db/Release-4_1_1_1-build-1_ce_051211-1820/Release-4_1_1_1-build-1_src/ext/rhel5_x86_64/include -Werror -fpic -I/home/gpadmin/greenplum-db/include -w -I. -I/home/gpadmin/greenplum-db/include/postgresql/server -I/home/gpadmin/greenplum-db/include/postgresql/internal -D_GNU_SOURCE  -I/home/build/builds/greenplum-db/Release-4_1_1_1-build-1_ce_051211-1820/Release-4_1_1_1-build-1_src/ext/rhel5_x86_64/include  -c -o dblink.o dblink.c
dblink.c:1: sorry, unimplemented: 64-bit mode not compiled in
make: *** [dblink.o] error 1

can anyone give some proposal? run "which postgres"

on CentOS get: ~/greenplum-db/bin/postgres on Fedora get:/usr/local/greenplum-db/bin/postgres

4

1 回答 1

1

首先,8.2.19 似乎是 PostgreSQL 的非常过时的版本,目前是 9.1.3,考虑使用更新的版本。

将目标文件从 32 位系统复制到 64 位系统并期望它们能够正常工作是不安全的。我建议你应该运行:

make clean
make

dblink源文件夹中。此外,您可能需要重新配置源代码,以便 Makefile 指向正确的库,以防您安装了多个 PostgreSQL 版本。

于 2012-04-16T07:56:18.593 回答