2012-04-16 48 views
0

我在我的PC(fedora 16) 中编译了dblink模块ubder postgresql 8.2.19/contrib/dblink ,但是当我转向CentOS时,它不起作用,暗示下面的消息:如何在centOS服务器上编译dblink模块(64位)

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 /斌/的Postgres在Fedora 得到:在/ usr /本地/ Greenplum的-DB /斌/ Postgres的

回答

1

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

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

make clean 
make 

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

+0

我想在基于postgresql 8.2.15的greeplum数据库中使用dblink,因此我应该使用postgresql 8.2.X – moxpeter 2012-04-16 08:30:56

+0

您的'greenplum'的pg_config是否首先由您的'PATH'设置找到? – vyegorov 2012-04-16 08:32:21

+0

$ pg_config --pgxs /usr/local/greenplum-db-4.1.0.0/lib/postgresql/pgxs/src/makefiles/pgxs.mk – moxpeter 2012-04-16 08:41:57

相关问题