tar.gz包是源代码的包,不能直接运行,需要安装
tar xvf samba-3.5.1.tar.gz
cd samba-3.5.1 &&
cd source3 &&
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-piddir=/var/run \
--with-pammodulesdir=/lib/security \
--with-fhs \
--with-automount \
--with-cifsumount \
--enable-nss-wrapper \
--with-pthreads &&
make
make install &&
install -v -m755 ../nsswitch/libnss_win{s,bind}.so /lib &&
ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2 &&
ln -v -sf libnss_wins.so /lib/libnss_wins.so.2 &&
install -v -m644 ../examples/smb.conf.default /etc/samba &&
install -v -m755 -d /usr/share/doc/samba-3.5.1 &&
install -v -m644 ../docs/*.pdf \
/usr/share/doc/samba-3.5.1 &&
ln -v -s ../../samba/swat /usr/share/doc/samba-3.5.1
以上就是用源代码安装samba的步骤