ubuntu – 无法使用SSL支持编译nginx,找不到OpenSSL

前端之家收集整理的这篇文章主要介绍了ubuntu – 无法使用SSL支持编译nginx,找不到OpenSSL前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试从启用SSL模块的源代码编译Nginx.当我运行此命令时:
./configure --with-http_ssl_module

它会进行常规检查以查看是否所有内容都已正确安装,然后弹出:

checking for OpenSSL library … not found

./configure: error: SSL modules require the OpenSSL library. You can
either do not enable the modules,or install the OpenSSL library into
the system,or build the OpenSSL library statically from the source
with Nginx by using –with-openssl= option.

我知道安装OpenSSL的事实,因为当我做openssl版本时我得到的是OpenSSL 1.0.1 2012年3月14日

所以我很难过.我想也许OpenSSL可能没有默认位置,这就是为什么Nginx无法找到它,但我不知道它在预装服务器的位置.我怎样才能知道这是哪里?

服务器正在运行Ubuntu 12.04 LTS.

谢谢.

很可能你错过了libssl-dev软件包.

但为什么不省去所有的麻烦,只使用PPA for nginx

原文链接:https://www.f2er.com/ubuntu/348900.html

猜你在找的Ubuntu相关文章