2011-09-15 42 views
-2

我想配置我的新PostgreSQL服務器而不使用ldap。當我執行「gmake world」命令時,會發現以下錯誤;有人知道嗎?構建PostgreSQL without-ldap錯誤

如果測試過,如果我配置PostgreSQL --with-ldap,這沒關係!

--version 
PostgreSQL: Postgresql 9.1 
OS :  Red Hat Enterprise Linux Server release 5.5 (Tikanga) 


--config script 
./configure --prefix=/opt/pgsql9.1 --with-pgport=1923 --with-segsize=8 --with-wal-segsize=64 --with-wal-blocksize=64 --with-perl --with-python --with-openssl --with-pam --with-libxml --with-libxslt --enable-thread-safety --without-ldap 

--a part of "gmake world" log 
utils/time/tqual.o utils/time/snapmgr.o utils/fmgrtab.o ../../src/timezone/localtime.o ../../src/timezone/strftime.o ../../src/timezone/pgtz.o ../../src/port/libpgport_srv.a -lxslt -lxml2 -lpam -lssl -lcrypto -lcrypt -ldl -lm -o postgres 
libpq/auth.o: In function `InitializeLDAPConnection': 
auth.c:(.text+0x2c4): undefined reference to `ldap_init' 
auth.c:(.text+0x2e7): undefined reference to `ldap_set_option' 
auth.c:(.text+0x329): undefined reference to `ldap_start_tls_s' 
auth.c:(.text+0x339): undefined reference to `ldap_unbind' 
auth.c:(.text+0x37e): undefined reference to `ldap_unbind' 
libpq/auth.o: In function `CheckLDAPAuth': 
auth.c:(.text+0x163a): undefined reference to `ldap_simple_bind_s' 
auth.c:(.text+0x1647): undefined reference to `ldap_unbind' 
auth.c:(.text+0x1690): undefined reference to `ldap_simple_bind_s' 
auth.c:(.text+0x174c): undefined reference to `ldap_search_s' 
auth.c:(.text+0x1768): undefined reference to `ldap_count_entries' 
auth.c:(.text+0x1783): undefined reference to `ldap_first_entry' 
auth.c:(.text+0x1792): undefined reference to `ldap_get_dn' 
auth.c:(.text+0x17c3): undefined reference to `ldap_memfree' 
auth.c:(.text+0x17ce): undefined reference to `ldap_msgfree' 
auth.c:(.text+0x17d9): undefined reference to `ldap_unbind_s' 
auth.c:(.text+0x1929): undefined reference to `ldap_get_option' 
auth.c:(.text+0x1964): undefined reference to `ldap_err2string' 
auth.c:(.text+0x19c2): undefined reference to `ldap_get_option' 
auth.c:(.text+0x19fd): undefined reference to `ldap_err2string' 
auth.c:(.text+0x1a42): undefined reference to `ldap_msgfree' 
auth.c:(.text+0x1a5e): undefined reference to `ldap_count_entries' 
auth.c:(.text+0x1b0a): undefined reference to `ldap_count_entries' 
collect2: ld 返回 1 
gmake[2]: *** [postgres] 錯誤 1 
gmake[2]: Leaving directory `/opt/soft_bak/postgresql-9.1.0/src/backend' 
gmake[1]: *** [all-backend-recurse] 錯誤 2 
gmake[1]: Leaving directory `/opt/soft_bak/postgresql-9.1.0/src' 
gmake: *** [world-src-recurse] 錯誤 2 
+0

您可以在[數據庫管理員](http://DBA.stackexchange.com)上提出這類問題。 – Jonas

+0

感謝您的建議,我知道這裏是如此活躍。 – francs

+0

誰可以幫助我將問題遷移到數據庫Admiinistrators? – francs

回答

0

如果先建--with-ldap,然後沒有,你需要運行之間make distclean(或者在第一次運行做configure --enable-depend)。

+0

感謝您的回覆,在配置之前,先執行「make distclean」通配,現在就開始吧! – francs