宝塔安装php7.4报错libssl冲突


报错libssl冲突

/usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1
/usr/bin/ld: ext/openssl/.libs/xp_ssl.o: undefined reference to symbol 'SSLv3_server_method@@libssl.so.10'
/usr/lib64/libssl.so.10: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1

解决方法重新安装openssl-1.1.1l

wget http://download.bt.cn/src/openssl-1.1.1l.tar.gz -T 20           
tar -zxf openssl-1.1.1l.tar.gz            
rm -f openssl-1.1.1l.tar.gz           
cd openssl-1.1.1l            
./config --prefix=/usr/local/openssl111 --openssldir=/usr/local/openssl111 enable-md2 enable-rc5 sctp zlib-dynamic shared -fPIC     
make install            
echo "/usr/local/openssl111/lib" >> /etc/ld.so.conf.d/zopenssl111.conf            
ldconfig

在编译安装openssl-1.1.1l报错找不到netinet/sctp.h解决方法

crypto/bio/bss_dgram.c:17:12: fatal error: netinet/sctp.h: No such file or directory
 #  include <netinet/sctp.h>
            ^~~~~~~~~~~~~~~~

ubuntu/debian解决方法
centos就得去自己搜索相对应的这个包了

apt-get install libsctp-dev

声明:小小博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - 宝塔安装php7.4报错libssl冲突


Carpe Diem and Do what I like