Bug 6259 - Samba binaries cannot find its shared Libraries
Summary: Samba binaries cannot find its shared Libraries
Status: CLOSED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.3.3
Hardware: x64 Linux
: P3 major
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 01:20 UTC by Joost Vandorp
Modified: 2009-04-14 11:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joost Vandorp 2009-04-14 01:20:20 UTC
/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.
Comment 1 Joost Vandorp 2009-04-14 01:29:07 UTC
Seems to be the same issue here

http://bugs.gentoo.org/show_bug.cgi?id=224683
Comment 2 Volker Lendecke 2009-04-14 02:24:51 UTC
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
Comment 3 Joost Vandorp 2009-04-14 07:47:50 UTC
That worked, thanks

output from running ldconfig:
/sbin/ldconfig.real: "/opt/samba/lib" is not a known library type
Comment 4 Volker Lendecke 2009-04-14 07:50:24 UTC
closing as fixed