LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-13-2010, 07:50 AM   #1
Ciesar
LQ Newbie
 
Registered: Jul 2009
Location: Brisbane, OZ
Distribution: Slackware, Fedora and Debian
Posts: 9

Rep: Reputation: 0
smbpasswd cannot find installed library libwbclient.so.0


Hello I am using Slackware 13.1 with the uname -a output:

Quote:
Linux darkstar 2.6.33.4 #2 Thu May 13 00:27:45 CDT 2010 i686 Intel(R) Atom(TM) CPU N450 @ 1.66GHz GenuineIntel GNU/Linux
When the binary smbpasswd is executed it gives the following output


Quote:
smbpasswd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: no such file or directory
ldd /usr/local/samba/bin/smbpasswd has this output

Quote:
linux-gate.so.1 => (0xffffe000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0xb7220000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb7214000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb71fd000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb71e4000)
libdl.so.2 => /lib/libdl.so.2 (0xb71df000)
libpopt.so.0 => /lib/libpopt.so.0 (0xb71d8000)
libwbclient.so.0 => not found
libz.so.1 => /usr/lib/libz.so.1 (0xb71c4000)
libc.so.6 => /lib/libc.so.6 (0xb7061000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7049000)
libssl.so.0 => /lib/libssl.so.0 (0xb7001000)
libcrypto.so.0 => /lib/libcrypto.so.0 (0xb6eb9000)
/lib/ld-linux.so.2 (0xb7286000)
The find command locates the missing library at

Quote:
/usr/local/samba/lib/libwbclient.so.0
I do not know how to direct the binary to the missing library.

Any help would be greatly appreciated
 
Old 12-13-2010, 06:20 PM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Hmm. Sounds like it wasn't installed properly. Hopefully that's your only problem.

Try:
Code:
ln -s /usr/local/samba/lib/libwbclient.so.0 /usr/lib/libwbclient.so.0
That's where it goes in Debian, I don't know about Slackware.

Where are those other libraries on your system? On mine they're in /usr/lib. If they're somewhere else on your system, adjust the ln command accordingly.
 
1 members found this post helpful.
Old 12-13-2010, 07:42 PM   #3
Ciesar
LQ Newbie
 
Registered: Jul 2009
Location: Brisbane, OZ
Distribution: Slackware, Fedora and Debian
Posts: 9

Original Poster
Rep: Reputation: 0
That fixed the problem but I'm still wondering why it was necessary because I compiled samba-3.5.6 from source and that is just where the library was placed. curious??

Thanks for the help gd2shoe
 
Old 12-13-2010, 07:45 PM   #4
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
I don't know. Seems odd to me too. You're welcome.
 
Old 12-13-2010, 10:40 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
That's not a slackware package, is it ... slacks samba doesn't
live under /usr/local. How did you install samba?



Cheers,
Tink
 
Old 12-18-2010, 03:17 AM   #6
Ciesar
LQ Newbie
 
Registered: Jul 2009
Location: Brisbane, OZ
Distribution: Slackware, Fedora and Debian
Posts: 9

Original Poster
Rep: Reputation: 0
It was installed from the samba-3.5.6 source code acquired from samba.org, just using "./configure" and "make install" commands in the source3 directory of the extracted package.

ciesar
 
Old 12-18-2010, 09:45 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,543

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
The default samba for Slackware 13.1 is version 3.5.2.
'samba-3.5.2-* is on the install DVD // cd disk 1.

Some binaries are hard coded to look in /usr/lib(:/lib) only.
That may be the issue with 'smbpasswd'.
( And may be also with your other samba executables.)

If you want a later version, the best ( and most correct ) solution is ..
Use the samba-3.5.6 Slackbuild from Slackware-current :
ftp://ftp.slackware.org.uk/slackware...ource/n/samba/

Last edited by knudfl; 12-18-2010 at 09:56 AM.
 
Old 12-22-2010, 12:05 AM   #8
Ciesar
LQ Newbie
 
Registered: Jul 2009
Location: Brisbane, OZ
Distribution: Slackware, Fedora and Debian
Posts: 9

Original Poster
Rep: Reputation: 0
I will be sure to do that in the future,

Thanks Knudfl
 
  


Reply

Tags
samba, smbpasswd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to find out what options a library was configured with when it was installed kvm1983 Linux - General 4 11-28-2010 07:42 PM
adding users using smbpasswd, or synchronise passwd/smbpasswd gyodai Linux - Networking 2 03-11-2009 02:47 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
Couldn't find ltdl library - but all libtools etc installed... trekk Linux - Software 1 11-10-2006 12:54 AM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 11:27 AM


All times are GMT -5. The time now is 12:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration