Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2005-06-25 10:31:46


> When trying to run build.sh by just typing
> "./build.sh" it gives a "bad interpreter error". When
> using "sh ./build.sh" (like in the boost docs), it
> returns several "unknown command" errors followed by a
> syntax error near the first defined function in the
> script (specifying the toolset like "sh ./build.sh
> gcc" shows the same behaviour).

You can get that with shell scripts if they have *windows line endings*. If
you got the source from the windows zip file, then you will almost certainly
need to strip the \r's from the shell script before it'll be accepted by the
shell (you can do that with the tr command, but I forget the exact
invocation).

HTH, John.

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk