/opt/samba/sbin/smbd: error while loading shared libraries: libtdb.so.1: cannot open shared object file: No such file or directory /opt/samba/sbin/winbindd: error while loading shared libraries: libtdb.so.1: cannot open shared object file: No such file or directory /opt/samba/sbin/nmbd: error while loading shared libraries: libtdb.so.1: cannot open shared object file: No such file or directory FIRST TRY sudo ./configure --prefix=/opt/samba sudo make sudo make install /opt/samba/sbin/smbd --> results in what you see above Second Try; sudo make clean sudo ./configure --prefix=/opt/samba --exec-prefix=/opt/samba --with-privatedir=/opt/samba/private --with-lockdir=/opt/samba/var/locks --with-swatdir=/opt/samba/swat --with-libtalloc --with-libtdb --with-libnetapi --with-libsmbclient --with-libsmbsharemodes --with-winbind --with-configdir=/opt/samba/configs sudo make sudo make install Second attempt also failed.
Seems to be the same issue here http://bugs.gentoo.org/show_bug.cgi?id=224683
Can you try LD_LIBRARY_PATH=/opt/samba/lib; export LD_LIBRARY_PATH before you start smbd? In case you are using Linux with glibc, you might also try to add /opt/samba/lib to /etc/ld.conf and re-run ldconfig. Volker
That worked, thanks output from running ldconfig: /sbin/ldconfig.real: "/opt/samba/lib" is not a known library type
closing as fixed