mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-19 06:43:51 +02:00
add python-quick-build.sh
This commit is contained in:
11
README.md
11
README.md
@@ -51,4 +51,13 @@ is not finished<br>
|
|||||||
|
|
||||||
## Prometheus + Grafana + Node_Exporter Quick Installer
|
## Prometheus + Grafana + Node_Exporter Quick Installer
|
||||||
  <br>
|
  <br>
|
||||||
<code>bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/prometheus.sh')</code>
|
<code>bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/prometheus.sh')</code>
|
||||||
|
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
|
||||||
|
## Python Quick Build and Install
|
||||||
|
Version: 3.9.2
|
||||||
|
  <br>
|
||||||
|
<code>bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/python-quick-build.sh')</code>
|
||||||
43
sh_scripts/python-quick-build.sh
Normal file
43
sh_scripts/python-quick-build.sh
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
#/bin/bash
|
||||||
|
CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l)
|
||||||
|
clear
|
||||||
|
echo "################################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# #"
|
||||||
|
echo "# Python3.9.2 #"
|
||||||
|
echo "# Quick Build #"
|
||||||
|
echo "# #"
|
||||||
|
echo "# by #"
|
||||||
|
echo "# johanneskr.de #"
|
||||||
|
echo "# #"
|
||||||
|
echo "# #"
|
||||||
|
echo "################################################"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "DE >"
|
||||||
|
echo "Dieses Script startet gleich automatisch."
|
||||||
|
echo ""
|
||||||
|
echo "EN >"
|
||||||
|
echo "This script will start automatically."
|
||||||
|
sleep 5
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "LETS GO!"
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt -y upgrade
|
||||||
|
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -y
|
||||||
|
wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz
|
||||||
|
tar -xf Python3-3.9.2.tgz
|
||||||
|
cd Python-3.9.2
|
||||||
|
./configure --enable-optimizations
|
||||||
|
make -j $CPUCORES
|
||||||
|
sudo make altinstall
|
||||||
|
echo ""
|
||||||
|
echo "########################################"
|
||||||
|
echo ""
|
||||||
|
echo "Python3.9 is installed"
|
||||||
|
echo "lets check this with: python3.9 --version"
|
||||||
|
echo ""
|
||||||
|
echo "########################################"
|
||||||
Reference in New Issue
Block a user