Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.


When starting samba on my FreeBSD machine, I get an error that says

/libexec/ld-elf.so.1 : Shared object "libgcrypt.so.15" not found, required by "smbd"

It is essential to say that I somehow "broke" this while updating some other ports using port manager.

Googling around hasn't helped much.

Any help is much appreciated.

Many Thanks.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

If libgcrypt was somehow updated you might need to update all the ports that depends on it (samba might be one of them). Try running:

portupgrade -rf libgcrypt
portmaster -r libgcrypt
share|improve this answer

It is very likely, assuming Samba worked before on the host, that updating another port or package replaced libgcrypt.so.15 with a later version, while the smbd binary was linked with that specific version. Check if you have a libgcrypt.so symbolic link pointing to a a different numbered version.

In that case, assuming that the newer version is backward binary compatible, you should be able to to work around this by creating a symbolic link from libgcrypt.so.15 to the newer version you have. It is however recommended to rebuild Samba with the newer version instead, in case there are any differences in the include files of the library.

Another possibility is that the package containing libgcrypt.so was uninstalled (due to a new conflict dependency or deprecation), but if Samba was installed from a FreeBSD port, this should have issued a warning.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.