'ERROR: While executing gem ... (Gem::Exception) OpenSSL is not available
I get this openssl error when trying to install/update any gem, although I have openSSL installed through brew install openssl.
This can be frustrating but there is a way to address this problem.
Solution 1:[1]
To address this problem, you need to:
- Install openssl:
brew install openssl - Using whatever package manager you use for ruby (rbenv, rvm, frum), reinstall the ruby version you need to work with, using the cli option for specifying the openssl directory to be used by the ruby version being installed.
For rvm that means:
rvm reinstall 2.3.0 — with-openssl-dir=`brew —-prefix openssl`
For frum:
frum uninstall <ruby version>
frum install <ruby version> --with-openssl-dir=<ssl_dir> # Specify the OpenSSL directory
This guide was geared towards MacOS. Similarly, you should reinstall ruby with the right cli options on whichever operating system you are using.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
