
30 Oct
2007
30 Oct
'07
3:48 p.m.
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