Skip to content

Instantly share code, notes, and snippets.

@se1983
Created February 2, 2022 14:12
Show Gist options
  • Save se1983/54d38d5d68e52004caa0a1bb516317c0 to your computer and use it in GitHub Desktop.
Save se1983/54d38d5d68e52004caa0a1bb516317c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# compiles python3.10 on centos 7
# sebsch 2022-02-02
yum groupinstall development -y
yum install wget zlib-devel gcc openssl-devel bzip2-devel libffi-devel xz-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel expat-devel -y
cd ~
echo "INSTALL python3.10"
wget https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz
tar xfzv Python-3.10.2.tgz
cd Python-3.10.2
./configure --prefix=/opt/python310 --enable-optimizations --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions
make -j "$(nproc)"
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment