Postgresql 如何在centOS服务器上编译dblink模块(64位)

Postgresql 如何在centOS服务器上编译dblink模块(64位),postgresql,Postgresql,我已经在postgresql 8.2.19/contrib/dblink下编译了dblink模块 在我的电脑中(fedora 16) 但当我转向CentOS时,它不起作用,提示如下: gcc -m64 -O3 -funroll-loops -fargument-noalias-global -fno-omit-frame-pointer -g -finline-limit=1800 -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -

我已经在postgresql 8.2.19/contrib/dblink下编译了dblink模块 在我的电脑中(fedora 16) 但当我转向CentOS时,它不起作用,提示如下:

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
有人能提出一些建议吗? 运行“哪个postgres”

在CentOS上获取:~/greenplum db/bin/postgres
在FEDORA获取:/Ur/Prime/GrimPrimDb/bin /Postgres

第一,82.19似乎是PostgreSQL的非常过时的版本,当前的版本是91.3,考虑使用较新的版本。 将对象文件从32位系统复制到64位系统是不安全的,并期望它们能正常工作。我建议你应该跑:

make clean
make

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

我想在基于PostgreSQL 8.2.15的greeplum数据库中使用dblink,因此,我应该使用postgresql 8.2.XIs作为您的
greenplum
路径设置首先找到的pg_配置?$pg_配置--pgxs/usr/local/greenplum-db-4.1.0.0/lib/postgresql/pgxs/src/makefiles/pgxs.mk您是否从greenplum源代码编译
dblink
?或者你是用PostgreSQL下载的吗?我下载了postgresql8.2.19的源代码,运行“make USE_PGXS=1 install”,它在我的PC(fedora16 32位)上工作,当我把它转到我们的服务器(CentOS 64位)上时,它就不工作了!