Boost logo

Boost Users :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-04-07 17:44:16


On Mon, Apr 7, 2008 at 5:33 PM, Germán Diago <germandiago_at_[hidden]> wrote:
> Hello. I tried to configure boost in order to be able to install it. But the
> configure archive
> seems to be broken.
>
> bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
>
> The output shows a ^M symbol after /bin/sh. It seems to be an encoding
> problem.
> So I tried to delete that line and invoke the script with the shell
> explicitly:
>
> /bin/bash ./configure --prefix=/usr
>
> But I get this error:
>
> : command not found:
> : command not found:
> : command not found2:
> : command not found7:
> '/configure: line 29: syntax error near unexpected token `do
> '/configure: line 29: `do
>
> Any solution, please? Thanks in advance.
>

If the first line has \r\n problems, the rest of them likely do too.
The strange error messages could well be the result of extra carriage
returns, lending credence to that theory.

Try converting all the line endings:
dos2unix ./configure # should do it

HTH,
~ Scott


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net