OpenLDAP Install fails. BerklyDB (configure: error: BDB/HDB: BerkeleyDB not availabl)
OpenLDAP Install fails. BerklyDB (configure: error: BDB/HDB: BerkeleyDB not availabl)
Hi all, Im new to this so sorry if its already asked. I am facing a issue here. Trying to install OpenLDAP on "Red Hat Enterprise Linux Server release 5.2 (Tikanga)". Kernel : Linux tom.acecorp.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux OpenLADP version : openldap-2.4.23 BerkleyDB version : db-5.2.28 BDB was installed properly but unable to install OpenLDAP. Here is where I get an error when I run "./configure" , ------------- checking for thr_yield... no checking for pthread_kill... yes checking for pthread_rwlock_destroy with <pthread.h>... yes checking for pthread_detach with <pthread.h>... yes checking for pthread_setconcurrency... yes checking for pthread_getconcurrency... yes checking for thr_setconcurrency... no checking for thr_getconcurrency... no checking for pthread_kill_other_threads_np... no checking for LinuxThreads implementation... no checking for LinuxThreads consistency... no checking if pthread_create() works... yes checking if select yields when using pthreads... yes checking for thread specific errno... yes checking for thread specific h_errno... yes checking for ctime_r... yes checking for gmtime_r... yes checking for localtime_r... yes checking for gethostbyname_r... yes checking for gethostbyaddr_r... yes checking number of arguments of ctime_r... 2 checking number of arguments of gethostbyname_r... 6 checking number of arguments of gethostbyaddr_r... 8 checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for Berkeley DB major version in db.h... 5 checking for Berkeley DB minor version in db.h... 2 checking if Berkeley DB version supported by BDB/HDB backends... yes checking for Berkeley DB link (default)... no configure: error: BDB/HDB: BerkeleyDB not available ------------------ After running through a few posts on the net regarding this I tried the following, ------- CPPFLAGS="-I/usr/local/BerkeleyDB.5.2/include/" export CPPFLAGS LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.2/lib/ -R/usr/local/BerkeleyDB.5.2/lib/" export LDFLAGS LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.2/lib/" export LD_LIBRARY_PATH ---------- But still no Luck. Also tried adding "/usr/local/BerkeleyDB.5.2/lib/" to PATH. but still the error persists. Please help me understand what I am doing wrong. Thanks and regards, Ankur. |
You shouldn't have to compile any of that yourself. Have you contacted RedHat about this? Running a licensed RedHat server entitles you to support from them. (They should have a tool to install it for you.)
|
Hi
configure found your Berkeley DB, but fails to use it when checking link Quote:
http://www.openldap.org/faq/data/cache/1113.html Cheers |
Hi cendryon,
Thanks for pointing that out. I followed the link and tried to understand what was given there. But i was unable to execute the "setenv LIBS -ldb" line as the setenv binary was not installed on my machine. So instead of that I did the following LIBS="-ldb -lgcc_s" export LIBS and along with this I also tried using a older BDB version that I had downloaded earlier. This time it was - db-5.1.19 and the final modifications that I had done to my variables were as follows; -------------------------------------- PATH="$PATH:/Program-Files/db-5.1.19/lib/" echo $PATH CPPFLAGS="-I/Program-Files/db-5.1.19/include/" export CPPFLAGS LDFLAGS="-L/usr/local/lib -L/Program-Files/db-5.1.19/lib/ -R/Program-Files/db-5.1.19/lib/" export LDFLAGS LD_LIBRARY_PATH="/Program-Files/db-5.1.19/lib/" export LD_LIBRARY_PATH CFLAGS="-I/Program-Files/db-5.1.19/include/ -I/usr/local/include -I/usr/include" export CFLAGS LIBS="-ldb -lgcc_s" export LIBS ------------------------------------ FYI .. i have installed my BDB and OpenLDAP packages in /Program-Files/ directory. And once this was done it got executed like a charm. So once again, Thanks to cendryon and travisdh1 for your time. Thanks fr the Help .... ;) |
You're welcome
Don't forget to mark the thread SOLVED (Thread tools at the top of the page) to help others find it ;) Cheers |
Roger that !!!!
its done ... |
All times are GMT -5. The time now is 02:10 AM. |