openresty:已经安装了openssl,但是执行 ./configure时还是一直报:./configure: error: SSL modules require the OpenSSL library.
2023-09-11 14:22:19 时间
安装openresty时,执行 ./configure时一直报:./configure: error: SSL modules require the OpenSSL library.
./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=<path> option.
我以为是openssl没安装成功,再次yum install openssl,但是发现明明已经是有openssl存在的了。。。
看错误提示:
or build the OpenSSL library statically from the source with nginx by using --with-openssl=<path> option.
很开心,按上面的指示,应该是要指定openssl的位置,于是which openssl找到openssl的安装位置, ./configure时增加参数,--with-openssl=/usr/local/bin/openssl,(这一步是错误的!!!)
./configure是通过了,但是,在执行gmake时就出现了新问题,
gmake[2]: *** [/usr/local/ssl/.openssl/include/openssl/ssl.h] Error 127 gmake[2]: Leaving directory `/root/openresty-1.11.2.2/build/nginx-1.11.2' gmake[1]: *** [build] Error 2 gmake[1]: Leaving directory `/root/openresty-1.11.2.2/build/nginx-1.11.2' gmake: *** [all] Error 2
究其原因,上面提示的应该是一个source的位置,而不应该是openssl的安装位置。。。
参考博客:https://www.phpsong.com/2930.html
但是openssl是通过yum install安装的,没有存到它的源码包(还是说我没找到?)
只能再到官网下载一个,https://www.openssl.org/source/openssl-1.1.1d.tar.gz
找到不你需要的版本没关系,找到一个版本相近的包,复制其下载链接,将后面的openssl版本替换成你需要的即可
(可以通过openssl vesion查看已经安装了的openssl的版本信息)
最后解压openssl源码包到一个位置
最终的 ./configure的参数形式为
./configure --prefix=/opt/openresty \ --with-luajit \ --without-http_redis2_module \ --with-http_iconv_module \ --with-http_postgres_module \ --with-openssl=/OpenResty/package/openssl-1.1.0e
问题解决,希望可以帮到你
相关文章
- 怎样在 RHEL、CentOS 和 Fedora 上安装 Git 及设置 Git 账号
- python3.7安装后ssl问题
- 执行buildman --fetch-arch arm提示"urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>"如何处理?
- Wireshark安装失败或找不到网络接口问题
- 安装SSL证书 and 根域名跳转www域名
- sysdig 安装与使用(转载)
- Windows Vistual Studio 2013/2015 MRPT安装
- CentOS桌面安装
- ROS Noetic入门笔记(一)在ubuntu20.04中安装ROS Noetic并简单测试
- Ubuntu 16.04安装MySQL(5.7.18)
- ethercat主站控制软件TwinCAT的安装
- (0)linux下的Mysql安装与基本使用(编译安装)
- python3.6.5 SSL问题解决:pip is configured with locations that require TLS/SSL, however the ssl module in
- linux 安装redmine 遇到的问题
- azkaban 报错:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
- 14. 成功解决:ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error code 1,net_error -103