Boost :: asio :: ssl OpenSSL无法编译 [英] Boost::asio::ssl OpenSSL not compiling

查看:393
本文介绍了Boost :: asio :: ssl OpenSSL无法编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用boost :: asio :: ssl.我已经通过sudo apt-get install openssl安装了openssl. 在我的makefile文件中,我通过-lssl链接了openssl.

I'm using boost::asio::ssl. I have installed openssl via sudo apt-get install openssl. In my makefile I link openssl via -lssl.

编译时出现错误: 致命错误:openssl/conf.h:没有这样的文件或目录

When compiling I am getting the error: fatal error: openssl/conf.h: No such file or directory

任何人都可以告诉我我所缺少的内容还是我错误地包含了图书馆?

Can anyone tell me what I'm missing or if I'm including the library incorrectly?

推荐答案

您可能没有必要的开发文件.尝试通过以下方式安装libssl-dev软件包:

You may not have the necessary development files. Try installing the libssl-dev package with

  sudo apt-get install libssl-dev

这可以解决您的问题

这篇关于Boost :: asio :: ssl OpenSSL无法编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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