Boost logo

Boost :

From: Lewis Hyatt (lhyatt_at_[hidden])
Date: 2007-10-30 11:48:25


Emil Dotchevski wrote:
> What is the recommended way to build bjam on cygwin? The documentation
> didn't seem to specify anything unusual about a cygwin build, but
> trying
>
> sh ./build.sh
>
> produces the following output:
>
> $ sh ./build.sh
> ./build.sh: line 2: $'\r': command not found
> ./build.sh: line 6: $'\r': command not found
> ./build.sh: line 9: $'\r': command not found
> ./build.sh: line 12: syntax error near unexpected token `$'\r''
> '/build.sh: line 12: `echo_run ()
>
> I am not that familiar with Cygwin, am I doing something wrong?
>

You have to convert the line endings from \r\n to \n, bash on cygwin
works the same as bash on unix, it interprets the \r literally. The
easiest way is to run "d2u build.sh" before running it.

-Lewis


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk