编译成功后,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
搞定了
012018-06-07 -
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.
00
相似问题