Trying to install Homebrew: miscellaneous errors returned
<p>My platform is OSX 10.7.5. Ruby version is <em>ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin11.4.2]</em></p>

<p>I am attempting to install Homebrew — to no avail. Here is what I tried so far from the Terminal:</p>

<p>1) Command copied from <a href="http://brew.sh/" rel="nofollow noreferrer">http://brew.sh/</a></p>

<pre><code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
</code></pre>

<p>This brings up the message</p>

<pre><code>-e:192: syntax error, unexpected '.', expecting $end
               .map { |d| File.join(HOMEBREW_PREFIX, d) }
            ^
</code></pre>

<p>2) From SO
<a href="https://stackoverflow.com/questions/15834804/error-when-installing-homebrew-with-ruby">Error when installing homebrew with ruby</a>
I also tried (a)</p>

<pre><code>ruby -e "$(curl -fsSL raw.github.com/mxcl/homebrew/go)"
</code></pre>

<p>and was returned</p>

<pre><code>curl: (22) The requested URL returned error: 404
</code></pre>

<p>and (b)</p>

<pre><code>/usr/bin/ruby -e "$(curl -fsSL https://github.com/mxcl/homebrew/blob/master/Library/Contributions/install_homebrew.rb)"
</code></pre>

<p>resulting in</p>

<pre><code>curl: (22) The requested URL returned error: 404
</code></pre>

<p>(a) and (b) both return class 4xx http Client errors.</p>

<p>I would be grateful if anyone could help.</p>