在下载安装了SAMBA3.2版本以后, 准备启动SMBD 个 NMBD 两个服务, 但是启动的时候提示以下错误:

/opt/app/samba/sbin/smbd  -D
/opt/app/samba/sbin/smbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory
/opt/app/samba/sbin/nmbd -D
/opt/app/samba/sbin/nmbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory

解决方法: 将/etc/ld.so.conf 中加入 /opt/app/samba/lib 然行运行 ldconfig 即可.