RVM cannot build OpenSSL on Mountain Lion

Ruby will build just fine, but it won’t build with OpenSSL support. I’ve tried setting CC to point to both the XCode 4.6 command line tools’ copy of GCC and MacPorts’ version of gcc 4.2. That doesn’t work. I’ve added --with-openssl-dir=$rvm_path/usr and --with-opt-dir=$rvm_path/usr. Neither of those work. Each time it fails, I check the log and it just says that there was an error configuring OpenSSL and that it will be skipped. Any ideas?

  • How do I use bundle exec in Aptana Studio 3.0.9 to run the debugger?
  • Error while installing Nokogiri (1.6.7) on El Capitan
  • Ruby Not Detecting Gems
  • RVM issue with Mountain Lion
  • Gem can be required in IRB but not by Rails
  • ruby bundle install fails with (Errno::EEXIST)
  • What happens to existing gems when I install RVM
  • ERROR: Error installing goliath: goliath requires Ruby version >= 1.9.2
  • 2 Solutions collect form web for “RVM cannot build OpenSSL on Mountain Lion”

    I had the same issue recently after installing ruby 2.0, this is how I solved:

    rvm get head
    rvm pkg remove
    rvm requirements run
    rvm reinstall 2.0.0
    

    I found the solution in the comments reported in this Issue

    i was fixing openssl issues while installing ruby on my new shiny mac yesterday.

    had to reinstall ruby as @fmendez suggested
    but before doing that i had to install openssl .
    i did it through brew.

    actually there are lot of other libraries you have to install , like automake , libxslt, etc.

    i did ,

    rvm requirements

    it showed me what all to install.please install that first before doing the reinstall of ruby.

    also i was facing issues while installing 1.8.4 , for that i had to do

    rvm install 1.18.4--with-gcc=clang --without-tcl --without-tk

    for installing ruby 1.9.2 , i had to do

    rvm install --with-gcc=clang

    hope it helps

    Ruby is the best programming language in the world - Ruby on Rails.