Re: Fail to build on Solaris 8, /bin/sh: test: argument expected



On Fri, 2006-06-09 at 00:19 -0700, zhang changlin wrote:
...

I googled the problem, it looks like the /bin/sh of
Solaris is not bash, but the scripts of GARNOME
assumes it is. I found no answer to this problem in
Google.

--On Friday, June 09, 2006 10:30 AM -0400 "Joseph E. Sacco, Ph.D." <joseph_sacco comcast net> wrote:

Solaris 8, eh???  Hmmm... It's been a while.  I know that SUN offers a
free suite of Open Source GNU tools:

        http://www.sun.com/software/solaris/freeware/


I am guessing that there are updates for some of these packages. Search
the web for sites that host SUN freeware.

No. The problem is that Garnome assumes that /bin/sh is a POSIX shell (or perhaps bash - I haven't tested with ksh/zsh/etc.). On Solaris, it is not. You can install as many copies of bash as you like, if you don't install them as /bin/sh, Garnome will break. The solution is to edit the broken Garnome files and replace /bin/sh with $SHELL or some such, and set $SHELL to be a POSIX shell.

You'll also need to fix a lot of other things, unless much has changed since the last time I built Garnome on Solaris.

--
Carson



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]