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 tranquil.it repository:
https://samba.tranquil.it/centos7/samba-4.12.6/x86_64/compat-gnutls34-devel-3.4.17-0.1.el7.x86_64.rpm
https://samba.tranquil.it/centos7/samba-4.12.6/x86_64/compat-nettle32-devel-3.2-0.3.el7.x86_64.rpm

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:

WordPress.com Logo

You are commenting using your WordPress.com 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