Linux – Samba 4.9.0 ./configure lmdb error

linuxsambasamba4

I'm very new to Linux and installing Samba and I'm trying to make my Centos 7 into a ADDC.
However, whenever I want to configure I get the following message:

Checking for lmdb >= 0.9.16 via header check : not found
Samba AD DC and –enable-selftest requires lmdb 0.9.16 or later

When using yum install lmdb it says it's already installed.

[root@localhost samba-4.9.0]# yum install lmdb
Loaded plugins:
fastestmirror Loading mirror speeds from cached hostfile * base:
mirrors.standaloneinstaller.com * epel: mirrors.powernet.com.ru *
extras: ftp.rezopole.net * updates: distrib-coffee.ipsl.jussieu.fr
Package lmdb-0.9.22-2.el7.x86_64 already installed and latest version
Nothing to do

Best Answer

The actual dependency to install (for Red Hat Enterprise Linux 7 / CentOS 7 / Scientific Linux 7) is lmdb-devel.

Rather than following some random tutorial for a now EOL version of Samba, you might be better off following the official (and up to date) Samba guidance: Build Samba from Source, Package Dependencies Required to Build Samba, Setting up Samba as an Active Directory Domain Controller

To be sure, the tutorial to which you linked DOES NOT list the current Samba dependencies for CentOS 7.