请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

编译成功后,make出错

[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


正在回答 回答被采纳积分+3

2回答

提问者 qq_期待_34 2018-02-18 11:13:53

yum -y install openssl openssl-devel  

搞定了

0 回复 有任何疑惑可以回复我~
  • 为什么我下了这个后
    重新make编译还是初夏了127错误
    [/opt/download/nginx-1.12.1/auto/lib/openssl/.openssl/include/openssl/ssl.h]
    回复 有任何疑惑可以回复我~ 2018-06-07 14:43:00
提问者 qq_期待_34 2018-02-18 10:49:11

编译时我加一句--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 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信