升級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*     最終解決方法就是執行這條命令,折騰半天


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM