脚本如下:
yum install -y epel-release
yum install -y openssl11 openssl11-devel
ln -sf /usr/lib64/pkgconfig/openssl11.pc /usr/lib64/pkgconfig/openssl.pc
最后一步 ln 建立符号链接 是为了让 python3.10 在 configure 时能找到 openssl 1.1.1
ln命令参考
《linux shell ln命令 建立文件符号链接》:blog.csdn.net/whatday/article/details/123842134
configure pkg-config 参考
《Linux中的configure、pkg-config、pkg_config_path和安装中的PKG_CONFIG_PATH问题 pkgconfig》:blog.csdn.net/whatday/article/details/83750785
《pkg-config简介 pkgconfig》:blog.csdn.net/whatday/article/details/83657547