#tar -zxf openssl-1.1.1l.tar.gz
# cd openssl-1.1.1l
#./config --prefix=/usr/local/openssl shared zlib?
# make
# make install
# openssl version
# mv /usr/bin/openssl /usr/bin/openssl.bak
# mv /usr/include/openssl /usr/include/openssl.bak
# ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/openssl/include/openssl /usr/include/openssl
# echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
# ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
# mv /usr/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1.bak
# ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
# mv /usr/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1.bak
# openssl version
升级openssl的过程中,发生错误。问题出在执行make的时候,出现了'BIO_ZLIB_CTX' has no member named 'XX'?和make[1]: *** [crypto/comp/c_zlib.o] Error 1等错误。查找了很久没找到原因。最终根据openss的GitHub上的提示和其他网友碰到的类似问题,定位到这个错误【crypto/comp/c_zlib.c:35:19: warning: zlib.h: No such file or directory】?,才确定安装zlib-devel包就可以了。安装命令:yum install zlib-devel -y。
安装zlib-devel包后,会多出下面这个zlib-devel.x86_64出来。
?
?参考网站:
openssl-1.1.1, error when executing "make" · Issue #7649 · openssl/openssl · GitHub
Centos 5.4 编译安装Openssl出错请教! - Linux新手园地-Chinaunix
memcache安装失败: error: zlib.h: No such file or directory-wwmshe-ChinaUnix博客
|