2012-04-16 94 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

相關問題