升级nginx遇到的问题

升级nginx遇到的问题

 

 

/usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libssl.so, may conflict with libcrypto.so.10
/usr/bin/ld: objs/src/core/nginx.o: undefined reference to symbol 'OpenSSL_version@@OPENSSL_1_1_0'
//usr/local/openssl/lib/libcrypto.so.1.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/server/tools/nginx-1.19.7'
make: *** [build] Error 2
 
解决1
降低OpenSSL的版本
下载解压编译安装
prefix配置安装路径 :
 wget https://www.openssl.org/source/openssl-1.1.0o.tar.gz
cd openssl-1.0.1o
./config --prefix=/opt/ldkjdata/nginx/openssl-1.0.1o
make
make install
把新版本删除
 
解决了1 出现问题2
/usr/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/server/tools/nginx-1.19.7'
make: *** [build] Error 2
 
yum -y install openssl*     最终解决方法就是执行这条命令,折腾半天

posted @ 2021-03-02 16:55  不忘初心--学  阅读(4158)  评论(0编辑  收藏  举报