Shared object "libsasl2.so.2" not found

I installed Samba on my freebsd FreeBSD. After I type and enter the command /usr/local/etc/rc.d/samba start an error shows up:
Code:
Starting nmbd.
/libexec/ld-elf.so.1: Shared object "libsasl2.so.2" not found, required by "libldap-2.4.so.8"
/usr/local/etc/rc.d/samba: WARNING: failed to start nmbd
Where can I get or download libsasl2.so.2? I cannot find it on the internet.
 
I don't think this is the Linux version of SAMBA but the native port. My guess is that the LDAP related ports need to recompiled.
 
cpu82 said:
Be sure you have installed security/linux-f10-cyrus-sasl2 which provides the missing libsasl2.so.2 library.
Code:
[CMD]% pkg_info -W /compat/linux/usr/lib/libsasl2.so.2[/CMD]
/compat/linux/usr/lib/libsasl2.so.2 was installed by package linux-f10-cyrus-sasl2-2.1.22_1
Also reinstall again net/openldap24-client.


Hi, after I did what you say it comes up with the failed error status below:
Code:
 pkg_add -r linux-f10-cyrus-sasl2
Fetching [url]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest/linux-f10-cyrus-sasl2.tbz[/url]... Done.
Fetching [url]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/All/linux_base-f10-10_4.tbz[/url]... Done.
sysctl: unknown oid 'compat.linux.osrelease'
linuxulator is not (kld)loaded, exiting
pkg_add: install script returned error status
pkg_add: pkg_add of dependency 'linux_base-f10-10_4' failed!
 
dennisv said:
Hi, after I did what you say it comes up with the failed error status below:
Code:
 pkg_add -r linux-f10-cyrus-sasl2
Fetching [url]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest/linux-f10-cyrus-sasl2.tbz[/url]... Done.
Fetching [url]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/All/linux_base-f10-10_4.tbz[/url]... Done.
sysctl: unknown oid 'compat.linux.osrelease'
linuxulator is not (kld)loaded, exiting
pkg_add: install script returned error status
pkg_add: pkg_add of dependency 'linux_base-f10-10_4' failed!

You don't have loaded linux.ko module which enables Linux binary compatibility. Type as root kldload linux. Please, consult instructions: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html.
 
Back
Top