LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba failing in Arch Linux (https://www.linuxquestions.org/questions/linux-newbie-8/samba-failing-in-arch-linux-4175529032/)

aagaag 12-22-2014 02:58 PM

Samba failing in Arch Linux
 
I have installed Samba via pacman, uninstalled, reinstalled via Yaourt, and in all cases I cannot get it to start. The error message is:
Code:

/usr/bin/samba: error while loading shared libraries: libwinbind-client.so: cannot open shared object file: No such file or directory
I have done:
Code:

pacman -S libwinbind-client libldap ldb libaio libbsd
to no avail.cCan a good soul point me to what I should do next? I'd be eternally grateful if I can get Samba to work!

Head_on_a_Stick 12-22-2014 03:23 PM

Please don't use Yaourt -- it frequently causes problems (search the Arch forums).

If you have to install from the AUR just download the tarball, unpack it with `tar xf` then run `makepkg -fics` to install it -- it's not at all complicated.
https://wiki.archlinux.org/index.php...lling_packages

To keep on top of updates, you could use cower or burp.

I don't use SAMBA, so all I can offer is this link:
https://wiki.archlinux.org/index.php/Samba

I strongly recommend that you follow this excellent guide carefully -- this will probably solve any problems.

grail 12-22-2014 08:50 PM

Agreed ... Arch wiki information should sort you out :)

aagaag 12-23-2014 04:44 AM

Thanks for your advice. However, reinstalling Samba with pacman leads to the same error. I am starting to despair. Everybody says that Linux is so much more reliable than Windows, but I never had an issue like this with a Windows computer...

grail 12-23-2014 05:49 AM

Quote:

but I never had an issue like this with a Windows computer
Really ... and just how many Windows machines have you installed samba on?

So to clarify, you have installed Samba with pacman and immediately hit an error with the install?

Previously it was an error starting Samba ... which I take it you have already started the service and edited any necessary config files prior to doing so?

Assuming all of the above is correct you may need to provide more information as to what it is you are doing when receiving the error?

aagaag 12-23-2014 06:40 AM

Sorry for my glib remark, and thanks for your continued help which is appreciated. After the install, systemctl status shows that the service did not start because the library mentioned above cannot be read.

grail 12-23-2014 10:51 AM

hmmm ... it does seem odd :(

Maybe try doing a complete removal, refresh and reinstall:
Code:

pacman -Rs samba
pacman -Scc
pacman -Syy
pacman -S samba

I have checked my copy and the required library comes from the package libwbclient, so after above and fresh install, make sure this was also installed

Head_on_a_Stick 12-23-2014 02:21 PM

Quote:

Originally Posted by grail (Post 5289590)
hmmm ... it does seem odd :(

Maybe try doing a complete removal, refresh and reinstall:
Code:

pacman -Rs samba
pacman -Scc
pacman -Syy
pacman -S samba

I have checked my copy and the required library comes from the package libwbclient, so after above and fresh install, make sure this was also installed

Do not perform a `pacman -Syy` without updating the system.
From the ArchWiki:
Quote:

Arch Linux is a rolling release, and new library versions will be pushed to the repositories. The developers and Trusted Users will rebuild all the packages in the repositories that need to be rebuilt against the libraries. If the system has locally installed packages (such as AUR packages), users will need to rebuild them when their dependencies receive a soname bump.

This means that partial upgrades are not supported. Do not use pacman -Sy package or any equivalent such as pacman -Sy and then pacman -S package.
https://wiki.archlinux.org/index.php...re_unsupported

You should use this instead:
Code:

# pacman -Syyu samba
It is entirely possible that your library problems are a result of using partial upgrades...


All times are GMT -5. The time now is 01:38 PM.