LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-11-2012, 10:06 AM   #1
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 45

Rep: Reputation: Disabled
Smile Ldap Confirguation


I am trying to install ldap, but i am getting the error.
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [slapd] Error 1
make[2]: Leaving directory `/usr/local/src/openldap-2.3.32/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/local/src/openldap-2.3.32/servers'
make: *** [all-common] Error 1
[root@tataclassedge openldap-2.3.32]#.

I have download openladp version openldap-2.3.32. I am using CentOS release 5.5 (Final)
Kernel \r on an \m in 32 bit arch. Kindly let me know what need to be update as i need to install it using source code.
I have done
2 STEP : tar -zxvf openldap-stable-20070110.tgz

3 STEP : ./configure --prefix=/usr/local/ldap

4 STEP : make depend ;make install
 
Old 10-11-2012, 11:09 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Quote:
/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format
What gives
Code:
rpm -qa|grep db4
Quote:
4 STEP : make depend ;make install
You need to run just "make" after "make depend" to build the software. If make finishes without errors, then you can (as root) to run "make install" to install it.
 
Old 10-11-2012, 11:41 AM   #3
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
Smile No solution

HI,

I have crosscheck but no result found. Getting the same error as previous.

All packages were Install
Kindly tel me know what need to done.

openldap-2.3.32]# rpm -qa|grep db4
db4-devel-4.3.29-10.el5_5.2
db4-4.3.29-10.el5_5.2
db4-utils-4.3.29-10.el5_5.2
db4-4.3.29-10.el5_5.2
db4-devel-4.3.29-10.el5_5.2
db4-tcl-4.3.29-10.el5_5.2
db4-java-4.3.29-10.el5_5.2
 
Old 10-11-2012, 12:50 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Quote:
openldap-2.3.32]# rpm -qa|grep db4
db4-devel-4.3.29-10.el5_5.2
db4-4.3.29-10.el5_5.2
db4-utils-4.3.29-10.el5_5.2
db4-4.3.29-10.el5_5.2
db4-devel-4.3.29-10.el5_5.2
db4-tcl-4.3.29-10.el5_5.2
db4-java-4.3.29-10.el5_5.2
Why there are 2 same development db4 packages? Maybe you have to remove both of them and reinstall the package once.
BTW, why aren't you installing the Centos openldap package from your distro's repo?
 
Old 10-11-2012, 12:54 PM   #5
gaurvrishi
Member
 
Registered: Apr 2012
Posts: 45

Original Poster
Rep: Reputation: Disabled
so could you please tel me know how can i remove that duplicate rpm. However if need to install using yum then kindly refer any best link so that i can install Ldap over my server.
 
Old 10-11-2012, 01:18 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
I'm not very familiar with rpm, so I don't know how you can uninstall 2 duplicate packages.
Perhaps try
Code:
rpm -e --allmatches --force db4-devel-4.3.29-10.el5_5.2
Regarding installing openldap using yum, have a look at this howto, that is written for openldap with the new config style that is using the slapd.d directory

Regards
 
Old 10-15-2012, 08:51 PM   #7
Matthew Hardin
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 5
The "duplicate RPM" thing is most likely because there are 32-bit and 64-bit development packages installed. This is perfectly legal, but RPM doesn't make it easy to see a package's architecture. You can run this form of RPM to display the name and the architecture of all packages:

Code:
rpm -qa --qf "%{n}-%{arch}\n"

The original error is a 32-/64-bit mismatch error- Linking 64-bit objects and finding 32-bit db library is the most likely case.

Centos/Red Hat like to put 64-bit libs in /usr/lib64 and 32-bit libs in /usr/lib. On a 64-bit machine gcc with no -m flag will produce 64-bit object files, but we can clearly see that the linker is looking in /usr/lib and not liking what it finds.

Gcc and the linker are usually smart enough to look in the right place for libraries, so somewhere in what you're doing you're telling the linker to look in /usr/lib instead of /usr/lib64. This could be your --libdir setting in OpenLDAP's configure, or it could be your LDFLAGS environment variable.

One alternative is to disable back-bdb and back-hdb during the configure phase (--disable-bdb --disable-hdb). Instead, enable back-mdb (it is actually enabled by default) and get a screamingly fast database that doesn't require a bunch of arcane cache configuration directives. OpenLDAP won't look for Berkeley DB at all.

Another alternative is to stop messing with all that and just download one of our (free) Symas OpenLDAP Silver packages. We're still at 2.4.32 for Centos/Red Hat and it'll be a few more days before we release a 2.4.33 package.

Hope this helps,

-Matt

Matthew Hardin
Symas - The LDAP Guys
http://www.symas.com

Last edited by Matthew Hardin; 10-15-2012 at 09:00 PM. Reason: Fixing typos and adding CODE tags, clarifying linking stuff
 
Old 10-16-2012, 03:21 AM   #8
milind_bhavsar
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
Hi gaurvrishi,


This error comes while installing LDAP when your berkeleyDB and openldap versions are mismatch .You have to dowload berkeley db compatible to your your LDAP version .Then you will not get .so files missing or not able to read related errors.

Regards,
Milind
 
Old 10-16-2012, 02:03 PM   #9
Matthew Hardin
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 5
Quote:
This error comes while installing LDAP when your berkeleyDB and openldap versions are mismatch .You have to dowload berkeley db compatible to your your LDAP version .Then you will not get .so files missing or not able to read related errors.
With all due respect, No. Gauvrishi is reporting a build problem, not a run-time problem. Pretty much any version of Berkeley DB will work as long as it's less than four years old. That's not to say it's the best version to use, just that it'll build and work.

Cheers,

-Matt

Matthew Hardin
Symas - The LDAP Guys
http://www.symas.com
 
  


Reply

Tags
ldap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
[SOLVED] Apache authentication: allow LDAP group OR user named guest, but not all LDAP users AlucardZero Linux - Server 1 05-25-2011 03:21 PM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LXer: LDAP Series Part IV - Installing OpenLDAP on Debian Plus Some LDAP Commentary LXer Syndicated Linux News 0 10-31-2006 06:54 PM


All times are GMT -5. The time now is 03:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration