报错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
Comments | NOTHING