[Vm-dev] error with envvars.sh when building VMMaker image

David T. Lewis lewis at mail.msen.com
Mon Oct 12 12:29:55 UTC 2015


On Mon, Oct 12, 2015 at 06:25:48AM -0400, Robert Withers wrote:
> 
> I am also getting an error on the image side, I've found, when running 
> buildspurtrunkvmmakerimage.sh.
> 
> ~/warren/image$ ./buildspurtrunkvmmakerimage.sh
> ./buildspurtrunkvmmakerimage.sh: 26: ./envvars.sh: Syntax error: "(" 
> unexpected
> 
> thanks,
> Robert

I think I recall encountering that one. Some of the scripts specified /bin/sh
in the shebang line, but the scripts required /bin/bash to run. For security
reasons, some recent Linux distros (Ubuntu, maybe others) are linking /bin/sh
to /bin/dash rather than to /bin/bash.

Edit the first line of those scripts and change /bin/sh to /bin/bash and the
problem should go away.

(Eliot, sorry if I forgot to mention this earlier).

Dave



More information about the Vm-dev mailing list