• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

Trouble installing netatalk on Mandrake 10 - configure can't find Berkeley DB

I'm trying to get netatalk 2.01  running on a Mandrake 10.0 server, but I keep getting configure errors related to the Berkeley DB, saying it couldn't find the bdb files, even when I had specified the correct path using the --with-bdb option.

After some Googling, I found a reference to a problem with RedHat caused by the use of libpthread (whatever that is), so I tried the suggestion of recompiling Berkeley DB with the --with-mutex="x86/gcc-assembly" option. Doing this changed one of the "no" responses to a "yes", but the configure still fails. Other things I've tried include adding  /usr/local/bdb/lib to my /etc/lib.so.conf file, and creating links to the libdb4.3.so file in various other /lib directories.

Here's the output I'm getting.

checking for Berkeley DB headers in /usr/local/bdb/include/db4.2... no
checking for Berkeley DB headers in /usr/local/bdb/include/db42... no
checking for Berkeley DB headers in /usr/local/bdb/include/db4.1... no
checking for Berkeley DB headers in /usr/local/bdb/include/db41... no
checking for Berkeley DB headers in /usr/local/bdb/include/db4... no
checking for Berkeley DB headers in /usr/local/bdb/include/... yes
checking /usr/local/bdb/include//db.h version >= 4.1.0... 4.3.21, yes
checking for Berkeley DB link (-ldb-4.2)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4-2)... no
checking for Berkeley DB link (-ldb-4.1)... yes
checking Berkeley DB library version >= 4.1.0... header/library version mismatch (4.3.21/4.1.25), no
checking for Berkeley DB headers in /usr/local/bdb/db4.2... no
checking for Berkeley DB headers in /usr/local/bdb/db42... no
checking for Berkeley DB headers in /usr/local/bdb/db4.1... no
checking for Berkeley DB headers in /usr/local/bdb/db41... no
checking for Berkeley DB headers in /usr/local/bdb/db4... no
checking for Berkeley DB headers in /usr/local/bdb/... no

Make sure you have the required Berkeley DB libraries AND headers installed.
You can download the latest version from http://www.sleepycat.com.
If you have installed BDB in a non standard location use the
--with-bdb=/path/to/bdb configure option and make sure
your linker is configured to check for libraries there.
configure: error: Berkeley DB library required but not found!

0
billmercer
Asked:
billmercer
  • 3
  • 3
1 Solution
 
jlevieCommented:
Are you trying to use BerkeleyDB 4.3.x? That version will require changes to the netatalk code since some of the API's have changed from previous versions. Any 4.2 version should work.
0
 
billmercerAuthor Commented:
I tried bdb 4.2.52 both and without the --with-mutex option, but Netatalk still won't configure. Same error message as before.


 



0
 
jlevieCommented:
What does 'rpm -qa | grep db' show?
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
pablouruguayCommented:
you need to install Bdb from sources or install bdb_headers if you install from RPM package

try using bdbxx.tar.gz to install it please
0
 
billmercerAuthor Commented:
pablouruguay, I did compile from source (note my original posting about recompiling bdb with the mutex option).

Here's my RPM query output for db.

libpwdb0-0.61.2-3mdk
libgdbm2-1.8.0-24mdk
pwdb-conf-0.61.2-3mdk
libdbcxx4.1-4.1.25-4mdk
libdb4.1-4.1.25-4mdk
foomatic-db-engine-3.0.1-0.20040302.3mdk
gdb-6.0-2mdk
libdbtcl4.1-4.1.25-4mdk

0
 
jlevieCommented:
Okay, that's what I thought you might find. There's a copy of BerkeleyDB installed to support rpm, but only the runtime support is there. I believe there's a libdb devel package in your distribution. Install that and don't specify a --with-bdb at configure of netatalk.
0
 
billmercerAuthor Commented:
Thank you, that did the trick. Everything compiled perfectly.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now