Install Ruby through RVM on Xcode 4.2.1 on Lion

12 Jan 2012

rvm cannot compile executable, for some reasons:

1
2
<div class='bogus-wrapper'><notextile><figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>... configure: error: C compiler cannot create executables ...</span></code></pre></td></tr></table></div></figure></notextile></div>

This post magically solve the problem!

Liy at 00:00