Somehow it happened there is no executable 'openssl'

Trying to install rvm which was working just fine yesterday, but today I’m getting this overly descriptive error message. Here is the full output.

Running this command:

curl -L | bash -s stable --auto-dotfiles --autolibs=enable --rails returned exit code 1

Getting this output:

rvm 1.28.0 (latest) by Wayne E. Seguin, Michal Papis []
Searching for binary rubies, this might take some time.
Found remote file
Checking requirements for osx.
Updating Homebrew…
Installing requirements for osx.
Updating system|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-.
Installing required custom packages: homebrew/dupes homebrew/dupes|/-\|/-\.
Installing required packages: zlib, libtool, pkg-config, coreutils, zlib, readline, libksba, openssl|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-.
Somehow it happened there is no executable ‘openssl’,
run ‘brew doctor’ and make sure latest ‘’ is installed properly.
RVM autolibs is now configured with mode ‘4’ =>
‘Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X).’,
please run rvm autolibs enable to let RVM do its job or run and read rvm autolibs [help]
or visit for more information.
Requirements installation failed with status: 12.

Anyone have any suggestions?

This happened to me on my MacOS 10.12.3 upgrading ruby version.

This is what I did:

I went to my mac’s /usr/local/Cellar

deleted openssl@1.1 folder I have (try to delete openssl folder if you have)

and then run brew install openssl

then rerun

rvm install ruby-2.4.0

got it from here: github issue