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.