Ruby 2.0.0 fails to install because of openssl I can't install ruby from source, on configuration (./configure) it states

Ignore OpenSSL broken by Apple.
Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')
Failed to configure openssl. It will not be installed.


Even if I use the told parameter. --with-opt-dir=/usr/local doesn't help either. Notice, I installed the latest openssl (1.0.1e) from source too (it's located at /usr/local/ssh). 

So later I can't use gem install, it just states:

ERROR:  Loading command: install (LoadError)
    cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass


How can I tell the ruby installation to take my installed openssl?
Rather than doing all the building from sources (and having to hunt down any necessary patches) why not try using rvm to build (and manage) your rubies, and homebrew to allow you to build and install the necessary dependencies.

I have used these to get a ruby 2.0.0 build completed earlier today, although I haven't had a chance to check if it's fully functional yet.