Building bjam on cygwin?

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? -- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode

on Mon Oct 29 2007, "Emil Dotchevski" <emil-AT-revergestudios.com> 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?
Probably your cygwin installation is set to use *nix line endings, and you checked out ./build.sh on Windows. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Why do you want to build bjam? If it is to build boost, it is not necessary, download the boost_1_34_1.tar.bz2 file, untar it and execute the following command which will build bjam automatically: $ configure --without-icu --prefix=/your/installation/path Then you are ready to build boost apart from some details that I can give you if you need. F. Bron ___________________________________ Frédéric Bron (frederic.bron@alcan.com) Unité ALT, Alcan CRV, BP 27, 38341 Voreppe téléphone : +33 4 76 57 81 72 télécopie : +33 4 76 57 80 99 boost-bounces@lists.boost.org a écrit sur 29/10/2007 23:03:11 :
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?
-- Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Avis : Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes en tout ou en partie. Notice: This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.

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
participants (4)
-
David Abrahams
-
Emil Dotchevski
-
frederic.bron@alcan.com
-
Lewis Hyatt