Unable to require openssl, install OpenSSL and rebuild ruby 解决方案

Python07

Unable to require openssl, install OpenSSL and rebuild ruby 解决方案,第1张

在装 gem sources,当输入 gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ 命令时, 提示如下错误:

ERROR: While executing gem ... (Gem::Exception)

Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

以上问题点,在 ruby-china 上找到解决办法,解决 OpenSSL 问题,是用如下两个方案

在当前工程上右键。new->folder,在弹出的对话框中的"folder name"输入一个文件夹的名字,这里用log4j。然后点击"advanced",选中"link to folder in the file system",“browse”一个目录,一般选当前工程的目录,然后在输入关联的文件夹名,如D:/workspace/MinaTest/log4j。