ruby出现ssl错误

ERROR:  While executing gem ... (Gem::Exception)     Unable to require openssl, install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
brew install openssl
rvm reinstall 2.3.4 --with-openssl-dir=`brew --prefix openssl`

ruby切换版本

rvm use 2.2.4 --default

你可能感兴趣的:(ruby出现ssl错误)