安裝Samba 3.6.22剛剛遇到的怪問題。

下載source code 依照官方文件的安裝方式安裝後,卻在要啟動samba的那邊(寫一個script 去 start smbd, winbindd , nmbd)時出現了:
------------------------------------------------------------------------------------------------------------------------
/usr/local/samba/sbin/smbd: error while loading shared libraries: libtalloc.so.2: cannot open shared object file: No such file or directory

/usr/local/samba/sbin/winbindd: error while loading shared libraries: libtalloc.so.2: cannot open shared object file: No such file or directory


/usr/local/samba/sbin/nmbd: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory

-----------------------------------------------------------------------------------------------------------------------


這時候就回到samba-3.6.22/source3/bin 下把缺的檔案 copy到 /usr/lib 下 就可以了!執行實缺啥就copy啥!像我缺了libtalloc.so.2, libwbclient.so.0 , libtevent.so.0 ,libtdb.so.1這幾個才能正常start......

留言