Hello. ? ?? I am installing samba by first time and I've problems. I've downloaded samba 3.2.4 version.?The machine is Sun with Solaris. After execute .configure, i execute?.install make with the next errors: ? =====================================================================The SWAT files have been installed. Remember to read the documentation for information on enabling and using SWAT =====================================================================./install-sh -c bin/libtalloc.so.1 //usr/local/samba/lib if test -e bin/libtalloc.so.1 ; then \ ??????? ln -s -f `basename bin/libtalloc.so.1` \ ??????????????? //usr/local/samba/lib/`basename bin/libtalloc.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) : bin/libtalloc.a //usr/local/samba/lib ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/lib/talloc/talloc.h //usr/local/samba/include ./install-sh -c bin/libtdb.so.1 //usr/local/samba/lib if test -e bin/libtdb.so.1 ; then \ ??????? ln -s -f `basename bin/libtdb.so.1` \ ??????????????? //usr/local/samba/lib/`basename bin/libtdb.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) : bin/libtdb.a //usr/local/samba/lib ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/lib/tdb/include/tdb.h //usr/local/samba/include ./install-sh -c bin/libwbclient.so.0 //usr/local/samba/lib if test -e bin/libwbclient.so.0 ; then \ ??????? ln -s -f `basename bin/libwbclient.so.0` \ ??????????????? //usr/local/samba/lib/`basename bin/libwbclient.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/nsswitch/libwbclient/wbclient.h //usr/local/samba/include ./install-sh -c bin/libnetapi.so.0 //usr/local/samba/lib if test -e bin/libnetapi.so.0 ; then \ ??????? ln -s -f `basename bin/libnetapi.so.0` \ ??????????????? //usr/local/samba/lib/`basename bin/libnetapi.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) : bin/libnetapi.a //usr/local/samba/lib ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/lib/netapi/netapi.h //usr/local/samba/include ./install-sh -c bin/libsmbclient.so.0 //usr/local/samba/lib if test -e bin/libsmbclient.so.0 ; then \ ??????? ln -s -f `basename bin/libsmbclient.so.0` \ ??????????????? //usr/local/samba/lib/`basename bin/libsmbclient.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) : bin/libsmbclient.a //usr/local/samba/lib ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/include/libsmbclient.h //usr/local/samba/include ./install-sh -c bin/libsmbsharemodes.so.0 //usr/local/samba/lib if test -e bin/libsmbsharemodes.so.0 ; then \ ??????? ln -s -f `basename bin/libsmbsharemodes.so.0` \ ??????????????? //usr/local/samba/lib/`basename bin/libsmbsharemodes.so` ; \ fi sh: test: argument expected *** Error code 1 (ignored) : bin/libsmbsharemodes.a //usr/local/samba/lib ./install-sh -c -m 0644 /usr/local/samba/samba-3.2.4/source/include/smb_share_modes.h //usr/local/samba/include ? ??? ?Can help me someone? ? ?? Thanks
On Thu, Oct 9, 2008 at 3:28 AM, De Mingo Perez <jmdemingo@yahoo.es> wrote:> I am installing samba by first time and I've problems. I've downloaded samba 3.2.4 version. The machine is Sun with Solaris. After execute .configure, i execute .install make with the next errors:...> ./install-sh -c bin/libtalloc.so.1 //usr/local/samba/lib > if test -e bin/libtalloc.so.1 ; then \ > ln -s -f `basename bin/libtalloc.so.1` \ > //usr/local/samba/lib/`basename bin/libtalloc.so` ; \ > fi > sh: test: argument expected...> ?Can help me someone?Sorry for the delayed response. There don't seem to be too many Solaris users, and we wind up being the beta testers. :-) The problem is that the Makefile uses /bin/sh for the SHELL macro, and on Solaris, the /bin/sh 'test' built-in doesn't understand '-e'. From the test(1) manpage: --- -e file True if file exists. (Not available in sh.) --- The normal way to workaround this is to set the CONFIG_SHELL environment variable to /bin/ksh before running configure, but unfortunately Samba's Makefile.in has SHELL=/bin/sh hard-coded into it (i.e. not "SHELL = @config_shell@"). So, what you have to is edit the Makefile after you ./configure, changing the line SHELL=/bin/sh to SHELL=/bin/ksh and everything should work OK. -David -- David Eisner http://cradle.brokenglass.com