title: OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv
body: <p>I'm trying to install Ruby 2.0.0-p195 using rbenv on a Mac (Mountain Lion) and got this error. </p>
  
  <pre><code>BUILD FAILED
  
  Inspect or clean up the working tree at /var/folders/vt/27n8h2yj27v7rzq58075f3_m0000gn/T/ruby-build.20130618163859.1669
  Results logged to /var/folders/vt/27n8h2yj27v7rzq58075f3_m0000gn/T/ruby-build.20130618163859.1669.log
  
  Last 10 log lines:
  installing default gems:      /Users/me/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
                                bigdecimal 1.2.0
                                io-console 0.4.2
                                json 1.7.7
                                minitest 4.3.2
                                psych 2.0.0
                                rake 0.9.6
                                rdoc 4.0.0
                                test-unit 2.0.0.0
  The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
  </code></pre>
  
  <p>When I ran brew install openssl it said</p>
  
  <pre><code>Warning: openssl-1.0.1e already installed
  </code></pre>
  
  <p>Following a solution on this thread <a href="https://github.com/sstephenson/ruby-build/issues/305">https://github.com/sstephenson/ruby-build/issues/305</a> I tried to install latest stable this way and got the same error</p>
  
  <pre><code>env CFLAGS='-g -O2' RUBY_CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline`" rbenv install 2.0.0-p195
  </code></pre>
  
  <p>Any ideas?</p>