你的位置:首页 > 服务器类
软件版本:OpenSSL 1.0.2h nginx/1.10.2
错误信息:
make -f objs/Makefile make[1]: Entering directory `/data/2016/openresty-1.11.2.2/bundle/nginx-1.10.2' cd /usr/local/openssl \ && if [ -f Makefile ]; then make clean; fi \ && ./config --prefix=/usr/local/openssl/.openssl no-shared \ && make \ && make install_sw LIBDIR=lib /bin/sh: line 2: ./config: No such file or directory make[1]: *** [/usr/local/openssl/.openssl/include/openssl/ssl.h] Error 127 make[1]: Leaving directory `/data/2016/openresty-1.11.2.2/bundle/nginx-1.10.2' make: *** [build] Error 2
其实/usr/local/openssl/目录下面根本没有.openssl这个目录,找不到相关文件肯定会报错的了。
解决方法也很简单:
vi auto/lib/openssl/conf 31 CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include" 32 CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h" 33 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a" 34 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
把31行到34行中的.openssl删除
31 CORE_INCS="$CORE_INCS $OPENSSL/include" 32 CORE_DEPS="$CORE_DEPS $OPENSSL/include/openssl/ssl.h" 33 CORE_LIBS="$CORE_LIBS $OPENSSL/lib/libssl.a" 34 CORE_LIBS="$CORE_LIBS $OPENSSL/lib/libcrypto.a"
保存之后,再make就编译通过了。

- 发表评论
- 查看评论
【暂无评论!】发表评论: