Building Samba 4.12 on Centos 7

Samba has some new dependencies which are not so easily fulfilled on Centos 7. You’ll need Python 3 and Nettle and GnuTLS-Devel-Packages which conflict with installed packages. Luckily there are “compat” packages, for example at the repository:

My shell script to build Samba looks like this, note the export-Statement:

export PKG_CONFIG_PATH=/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig

./configure –disable-python –without-ads –disable-cups –without-json –without-libarchive –disable-iprint –with-systemd –without-winbind –without-ad-dc –without-ldap –prefix=/ –sysconfdir=/etc/samba –with-logfilebase=/var/log/samba –with-piddir=/var/run –with-privatedir=/var/lib/samba/private –includedir=/usr/include –sharedstatedir=/usr/share –with-lockdir=/run/lock/samba

make && make smbclient && make install && make clean && make distclean

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s