编译成功后,make出错

来源:4-28 Nginx与Lua的开发_Nginx与Lua的开发环境

qq_期待_34

2018-02-18

[root@bogon nginx-1.12.2]# make -j 4 && make install

make -f objs/Makefile

make[1]: 进入目录“/opt/download/nginx-1.12.2”

cd /usr/lib64/openssl \

&& if [ -f Makefile ]; then make clean; fi \

&& ./config --prefix=/usr/lib64/openssl/.openssl no-shared  \

&& make \

&& make install_sw LIBDIR=lib

/bin/sh:行2: ./config: 没有那个文件或目录

make[1]: *** [/usr/lib64/openssl/.openssl/include/openssl/ssl.h] 错误 127

make[1]: 离开目录“/opt/download/nginx-1.12.2”

make: *** [build] 错误 2


写回答

2回答

qq_期待_34

提问者

2018-02-18

yum -y install openssl openssl-devel  

搞定了

0
1
ericdemon
为什么我下了这个后 重新make编译还是初夏了127错误 [/opt/download/nginx-1.12.1/auto/lib/openssl/.openssl/include/openssl/ssl.h]
2018-06-07
共1条回复

qq_期待_34

提问者

2018-02-18

编译时我加一句--with-openssl=/usr/lib64/openssl   原先找不到openssl

checking for OpenSSL library in /usr/local/ ... not found

checking for OpenSSL library in /usr/pkg/ ... not found

checking for OpenSSL library in /opt/local/ ... 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=<path> option.


0
0

Nginx入门到实践-Nginx中间件应用+搭建Webserver架构

中间件、负载均衡、应用层安全防护、动静分离、Nginx+LUA开发等

4183 学习 · 908 问题

查看课程