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

之前装theos的时候不知道配着那里弄错了.一直是报标题里的错误,一天半了都没弄好.以为是openssl ,改了也不行, 慢慢的发现应该是ruby路径配置的有问题, 用了下面这个老哥的方法, 就不报了....

[CoderJin

](https://ruby-china.org/CoderJin) ·

2月前

以下经过测试

1,去ruby官网下载ruby-2.3.3

2,安装openssl,一般用brew install openssl安装后路径为/usr/local/Cellar/openssl/1.0.2j

3,安装ruby:解压ruby-2.3.3后(我解压之后直接放到桌面的),进入其目录,执行:./ configure --with-openssl-dir = / usr / local / Cellar / openssl / 1.0 .2j

使

sudo make install

你可能感兴趣的:(Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources的解决)