linux环境下nignx安装出现 make[1]: *** [/usr/local/wotrus_ssl/.openssl/include/openssl/ssl.h] Error 127错误

  • Post author:
  • Post category:linux


如果在linux环境下nignx安装出现 make[1]: *** [/usr/local/wotrus_ssl/.openssl/include/openssl/ssl.h] Error 127错误,则需要进入 nginx-1.18.0/auto/lib/openssl 目录下

编辑 conf 文件。需修改如下内容:

CORE_INCS=”$CORE_INCS $OPENSSL/.openssl/include”

CORE_DEPS=”$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h”

CORE_LIBS=”$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a”

CORE_LIBS=”$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a”

修改为:

CORE_INCS=”$CORE_INCS $OPENSSL/include”

CORE_DEPS=”$CORE_DEPS $OPENSSL/include/openssl/ssl.h”

CORE_LIBS=”$CORE_LIBS $OPENSSL/lib/libssl.a”

CORE_LIBS=”$CORE_LIBS $OPENSSL/lib/libcrypto.a”

保存文件后,需先执行 make clean 清除编译配置,

再重新进入 nginx-1.18.0 文件夹执行

./configure –prefix=/usr/local/nginx –with-pcre=../pcre-8.21 –with-zlib=../zlib-1.2.7 –with-http_stub_status_module –with-stream –with-http_ssl_module –with-stream_ssl_module –with-openssl=…/openssl-fips-2.0.2

make && make install



版权声明:本文为baixiaohei09原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。