操作系统:CentOS-7.x 1、创建目录 mkdir -p /data/server/soft #软件包存放目录 2、下载Python3 https://www.python.org/ftp/python/ https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz 3、下载OpenSSL(Python3需要高版本openssl支持) 下载地址:https://www.openssl.org/source/openssl-1.1.1w.tar.gz #上传安装包到软件包存放目录/data/server/soft 4、安装必要的依赖 yum groupinstall "Development tools" yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel gcc gfortran python3-devel yum install libffi-devel zlib1g-dev zlib* perl yum install centos-release-scl yum install devtoolset-8-toolchain scl enable devtoolset-8 bash vi ~/.bashrc # Enable devtoolset-8 [...]
查看全文