致命错误:找不到“openssl/bio.h"文件 [英] fatal error: 'openssl/bio.h' file not found
问题描述
我正在尝试在我的 Mac 上安装 Apache Thrift,但遇到了一个问题.我按照此页面上的安装步骤进行操作,但是当我尝试执行安装libevent<的步骤时/code>,运行
make
命令时出现以下错误:
I am trying to install Apache Thrift on my Mac, but am hitting an issue.
I followed the installation steps on this page, but when I try to do the steps for installing libevent
, I get the following error when running the make
command:
由于找不到openssl/bio.h"文件而导致的致命错误
fatal error because of 'openssl/bio.h' file not found
我检查了我使用的 openSSL 的版本,它是0.9.8zg"
I've checked the version of openSSL I'm using, and it's "0.9.8zg"
关于我应该怎么做来解决这个问题有什么建议吗?
Any advice on what I should do to fix this?
推荐答案
我在 El Capitan 10.11.6 上,我在手动安装 mongodb php 扩展时遇到了问题.
I'm on El Capitan 10.11.6 and i had the issue while installing manually the mongodb php extension.
我按照@user7059092 关于配置阶段的指示解决了它:
I solved it following the indications of @user7059092 about the configure stage :
$./configure LDFLAGS='-L/usr/local/opt/openssl/lib'CPPFLAGS='-I/usr/local/opt/openssl/include'
这篇关于致命错误:找不到“openssl/bio.h"文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!