Add new file
This commit is contained in:
20
install.sh
Normal file
20
install.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Taken from: https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/
|
||||
|
||||
# CentOS7
|
||||
# Start by making sure your system is up-to-date:
|
||||
yum update -y
|
||||
# Compilers and related tools:
|
||||
yum groupinstall -y "development tools"
|
||||
# Libraries needed during compilation to enable all features of Python:
|
||||
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel
|
||||
# If you are on a clean "minimal" install of CentOS you also need the wget tool:
|
||||
yum install -y wget
|
||||
|
||||
# Python 3.7.4:
|
||||
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
|
||||
tar xf Python-3.7.4.tar.xz
|
||||
cd Python-3.7.4
|
||||
./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
|
||||
make && make altinstall
|
||||
Reference in New Issue
Block a user