<p>The error message suggests that <strong>the script you’re invoking has embedded <code>\r</code> characters</strong>, which in turn suggests that it has <strong>Windows-style <code>\r\n</code> line endings</strong> (newlines) instead of the <code>\n</code>-only line endings <code>bash</code> expects.</p>
<p>As a <strong>quick fix</strong>, vous pouvez remove the <code>\r</code> chars. as follows:</p>
<pre><code class="lang-auto">sed $'s/\r$//' ./install.sh > ./install.Unix.sh
</code></pre>
<p>Note: The <code>$'...'</code> string is an <a href="http://www.gnu.org/software/bash/manual/bash.html#ANSI_002dC-Quoting">ANSI-C quoted string</a> supported in <code>bash</code>, <code>ksh</code>, and <code>zsh</code>. It is used to ensure that the <code>\r</code> expands to an actual CR character before <code>sed</code> sees the script, because not all <code>sed</code> implementations themselves support <code>\r</code> as an escape sequence.</p>
<p>puis run</p>
<pre><code class="lang-auto">./install.Unix.sh --clang-completer
</code></pre>
<p>Cependant, the larger question is why you’ve ended up with <code>\r\n</code>-style files - most likely, other files are affected, too.</p>
<p>Perhaps you’re running <strong>Git on Windows</strong>, where a <strong>typical configuration is to convert Unix-style <code>\n</code>-only line breaks to Windows-style <code>\r\n</code> line breaks on <em>checking files out</em> and re-converting to <code>\n</code>-only line breaks on <em>committing</em></strong>.</p>
<p>While this <strong><em>somewhat</em> makes sense for <em>development</em></strong>[1] on Windows, it <strong>gets in the way of <em>installation</em> scenarios</strong> like these.</p>
<p>To <strong>make Git check out files with Unix-style file endings on Windows</strong> - at least temporarily - use:</p>
<pre><code class="lang-auto">git config --global core.autocrlf false
</code></pre>
<p>Then run your installation commands involving <code>git clone</code> again.</p>
<p>To restore Git’s behavior later, run <code>git config --global core.autocrlf true</code>.</p>
<p>[1] These days, most editors and CLIs on Windows can handle <code>\r\n</code> and <code>\n</code> newlines <em>interchangeably</em>.</p>