无法要求openssl,安装OpenSSL并重建ruby(首选)或使用非HTTPS源 [英] Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

查看:2308
本文介绍了无法要求openssl,安装OpenSSL并重建ruby(首选)或使用非HTTPS源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装 jekyll ,并且遇到错误。我正在运行Mac OS X 10.11.4(El Capitan)。

  $ gem install jekyll 
错误:While执行gem ...(Gem :: Exception)
无法要求openssl,安装OpenSSL并重建ruby(首选)或使用非HTTPS源
$ gem源-l $ b $ https https:/ /ruby.taobao.org
$ which openssl
/ usr / local / bin / openssl

我欢迎您提出如何解决此错误的建议。

解决方案

有可能 / usr / local / 不是它搜索标题和库的文件夹(它在 / user / 中搜索)。 Apple决定在OS X下删除openssl(在10.11(SDK)中,库仍然存在,但不包含头文件)。

I'm attempting to install jekyll and I've encountered an error. I'm running Mac OS X 10.11.4 (El Capitan).

$gem install jekyll
ERROR : While executing gem ... (Gem::Exception)
        Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
$gem source -l
https://ruby.taobao.org
$which openssl
/usr/local/bin/openssl

I welcome your suggestions how to resolve this error.

解决方案

Is it possible that /usr/local/ is not the folder it searches for headers and libraries (it searches in /user/). Apple decided to remove openssl under OS X (in 10.11 (SDK) the library is still there, but not the headers).

这篇关于无法要求openssl,安装OpenSSL并重建ruby(首选)或使用非HTTPS源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆