Hello,
When trying to install OpenLDAP 2.3.42 I got an error complaining about berkely DB 4.3. I Googled around and found out that OpenLDAP does not like version 4.4 so I downloaded and installed version Berkeley DB 4.5
I then tried to configure with ./configure --includedir=/usr/local/bdb4.5 (where I installed the new version).
Still, the configure script is going to fetch my old version. So I decided to rename the files of the old version in /usr/lib and link the same files to the ones in /usr/local/bdb4.5... somehow he still thinks I am using BDB 4.3 with the error: checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 3 checking for Berkeley DB link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no checking for Berkeley DB link (-ldb-4.3)... no checking for Berkeley DB link (-ldb-4-3)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... yes checking for Berkeley DB version match... Berkeley DB version mismatch header: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) library: Berkeley DB 4.5.20: (September 20, 2006)
So my question... is there any way to force the location of Berkeley DB when running configure?
Thank you, Nuno
Nuno Manuel Martins nuno.mmartins_externo@sonae.com writes:
Hello,
When trying to install OpenLDAP 2.3.42 I got an error complaining about berkely DB 4.3. I Googled around and found out that OpenLDAP does not like version 4.4 so I downloaded and installed version Berkeley DB 4.5
[...]
So my question… is there any way to force the location of Berkeley DB when running configure?
The INSTALL script in the source files clearly states that configure uses environmetal variables and shows some examples.
-Dieter
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
Regards, Nuno
-----Original Message----- From: openldap-software-bounces+nuno.mmartins_externo=sonae.com@OpenLDAP.org [mailto:openldap-software-bounces+nuno.mmartins_externo=sonae.com@OpenLDAP.org] On Behalf Of Dieter Kluenter Sent: sexta-feira, 20 de Junho de 2008 16:21 To: openldap-software@openldap.org Subject: Re: Installation problem with Berkeley DB
Nuno Manuel Martins nuno.mmartins_externo@sonae.com writes:
Hello,
When trying to install OpenLDAP 2.3.42 I got an error complaining about berkely DB 4.3. I Googled around and found out that OpenLDAP does not like version 4.4 so I downloaded and installed version Berkeley DB 4.5
[...]
So my question… is there any way to force the location of Berkeley DB when running configure?
The INSTALL script in the source files clearly states that configure uses environmetal variables and shows some examples.
-Dieter
-- Dieter Klünter | Systemberatung http://www.dkluenter.de GPG Key ID:8EF7B6C6
--On Friday, June 20, 2008 4:31 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
The workaround is, don't use BDB 4.3. It's not supported with OpenLDAP because BDB 4.3 showed itself to be unreliable.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Correct. That is why, as I mentioned in the first mail, I installed Berkeley DB 4.5. I did not uninstall version 4.3 since I don't know what else in the system is using it and I don't want to break anything.
The problem is that even though I installed version 4.5 OpenLDAP configure script still wants to use version 4.3 even after I tell him to look for libraries in the Berkeley 4.5 folder (with --includedir=/folder/) ... what I really need to know is how I can force him to ignore /usr/lib for Berkeley and use /usr/local/bdb4.5 instead.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:42 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
--On Friday, June 20, 2008 4:31 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
The workaround is, don't use BDB 4.3. It's not supported with OpenLDAP because BDB 4.3 showed itself to be unreliable.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
http://www.openldap.org/faq/data/cache/43.html
--On Friday, June 20, 2008 4:47 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
Correct. That is why, as I mentioned in the first mail, I installed Berkeley DB 4.5. I did not uninstall version 4.3 since I don't know what else in the system is using it and I don't want to break anything.
The problem is that even though I installed version 4.5 OpenLDAP configure script still wants to use version 4.3 even after I tell him to look for libraries in the Berkeley 4.5 folder (with --includedir=/folder/) ... what I really need to know is how I can force him to ignore /usr/lib for Berkeley and use /usr/local/bdb4.5 instead.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:42 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
--On Friday, June 20, 2008 4:31 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
The workaround is, don't use BDB 4.3. It's not supported with OpenLDAP because BDB 4.3 showed itself to be unreliable.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Thank you for the link but I am afraid it does not work :(
I tried setting it with the way the link suggested. I tried setting LD_LIBRARY_PATH and I even tried to set it in /etc/ld.so.conf but still refuses to use the new version and gives precedence to the version 4.3 in the system.
Regards, Nuno
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:54 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
http://www.openldap.org/faq/data/cache/43.html
--On Friday, June 20, 2008 4:47 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
Correct. That is why, as I mentioned in the first mail, I installed Berkeley DB 4.5. I did not uninstall version 4.3 since I don't know what else in the system is using it and I don't want to break anything.
The problem is that even though I installed version 4.5 OpenLDAP configure script still wants to use version 4.3 even after I tell him to look for libraries in the Berkeley 4.5 folder (with --includedir=/folder/) ... what I really need to know is how I can force him to ignore /usr/lib for Berkeley and use /usr/local/bdb4.5 instead.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:42 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
--On Friday, June 20, 2008 4:31 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
The workaround is, don't use BDB 4.3. It's not supported with OpenLDAP because BDB 4.3 showed itself to be unreliable.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Just to add that the last step in the link provided, running with the explicit option to not look for version 4.3
env ol_cv_db_db_4_dot_3=no ./configure --prefix=/opt/ldap
Still does not work and I get the following output: checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 3 checking for Berkeley DB link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no checking for Berkeley DB link (-ldb-4.3)... (cached) no checking for Berkeley DB link (-ldb-4-3)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... yes checking for Berkeley DB version match... Berkeley DB version mismatch header: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) library: Berkeley DB 4.5.20: (September 20, 2006) no configure: error: Berkeley DB version mismatch
Without that option it does not fail at configure (although it detects the 4.3 version) but will fail when doing "make". It is strange however that he does seem to know that version 4.5 is on the system, just refusing to use it.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:54 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
http://www.openldap.org/faq/data/cache/43.html
--On Friday, June 20, 2008 4:47 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
Correct. That is why, as I mentioned in the first mail, I installed Berkeley DB 4.5. I did not uninstall version 4.3 since I don't know what else in the system is using it and I don't want to break anything.
The problem is that even though I installed version 4.5 OpenLDAP configure script still wants to use version 4.3 even after I tell him to look for libraries in the Berkeley 4.5 folder (with --includedir=/folder/) ... what I really need to know is how I can force him to ignore /usr/lib for Berkeley and use /usr/local/bdb4.5 instead.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 16:42 To: Nuno Manuel Martins; Dieter Kluenter; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
--On Friday, June 20, 2008 4:31 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
It does mention that the configure script will set environment setting and "if" it all goes well this should be enough. Doesn't mention much in case things go wrong except to take a look at config.log which tells me it can't compile with Berkely 4.3 due to some problem with linking which I have no clue about since I am no developer and have little understanding of programming in general and C in particular.
That much I had understood from Google, what I was looking for though was a workaround for the problem.
The workaround is, don't use BDB 4.3. It's not supported with OpenLDAP because BDB 4.3 showed itself to be unreliable.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc
Zimbra :: the leader in open source messaging and collaboration
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
--On Friday, June 20, 2008 5:16 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
Just to add that the last step in the link provided, running with the explicit option to not look for version 4.3
env ol_cv_db_db_4_dot_3=no ./configure --prefix=/opt/ldap
Still does not work and I get the following output: checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 3 checking for Berkeley DB link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no checking for Berkeley DB link (-ldb-4.3)... (cached) no checking for Berkeley DB link (-ldb-4-3)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... yes checking for Berkeley DB version match... Berkeley DB version mismatch header: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) library: Berkeley DB 4.5.20: (September 20, 2006) no configure: error: Berkeley DB version mismatch
Without that option it does not fail at configure (although it detects the 4.3 version) but will fail when doing "make". It is strange however that he does seem to know that version 4.5 is on the system, just refusing to use it.
The error states that it is finding the 4.3 HEADERS not the 4.3 LIBRARY. You need to fix it to use the HEADER path to 4.5:
Use CPPFLAGS to set the path for the headers to use. For example:
CPPFLAGS="-I/usr/local/bdb-4.5/include"
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Thank you for your help, seems to be using the correct headers and library now.
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] Sent: sexta-feira, 20 de Junho de 2008 17:21 To: Nuno Manuel Martins; openldap-software@openldap.org Subject: RE: Installation problem with Berkeley DB
--On Friday, June 20, 2008 5:16 PM +0100 Nuno Manuel Martins nuno.mmartins_externo@sonae.com wrote:
Just to add that the last step in the link provided, running with the explicit option to not look for version 4.3
env ol_cv_db_db_4_dot_3=no ./configure --prefix=/opt/ldap
Still does not work and I get the following output: checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 3 checking for Berkeley DB link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no checking for Berkeley DB link (-ldb-4.3)... (cached) no checking for Berkeley DB link (-ldb-4-3)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... yes checking for Berkeley DB version match... Berkeley DB version mismatch header: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006) library: Berkeley DB 4.5.20: (September 20, 2006) no configure: error: Berkeley DB version mismatch
Without that option it does not fail at configure (although it detects the 4.3 version) but will fail when doing "make". It is strange however that he does seem to know that version 4.5 is on the system, just refusing to use it.
The error states that it is finding the 4.3 HEADERS not the 4.3 LIBRARY. You need to fix it to use the HEADER path to 4.5:
Use CPPFLAGS to set the path for the headers to use. For example:
CPPFLAGS="-I/usr/local/bdb-4.5/include"
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org