카테고리 없음
CentOS 7에서 Python 3.11 설치 (+openssl1.1)
Lawmin
2022. 12. 12. 11:01
wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz
gzip -d Python-3*.tgz
tar xvf Python-3*.tar
rm Python-3*.tar
cd Python*
yum install libffi-devel
yum install epel-release
yum install openssl11 openssl11-devel
export CFLAGS=$(pkg-config --cflags openssl11)
export LDFLAGS=$(pkg-config --libs openssl11)
./configure --enable-optimizations
make -j4
sudo make install
vi /etc/profile
export PATH=/usr/local/bin:$PATH