sudo gem install gym
使用的是https://gems.ruby-china.org 的源,但是现在安装gem包就报下面的错误;
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
hostname "gems.ruby-china.org" does not match the server certificate
解决方法:
mac 命令:brew install openssl
sudo gem install gym
使用的是https://gems.ruby-china.org 的源,但是现在安装gem包就报下面的错误;
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
hostname "gems.ruby-china.org" does not match the server certificate
解决方法:
mac 命令:brew install openssl