add ubuntu build and install python3.8
This commit is contained in:
parent
d167b57431
commit
efad1a7409
30
Ubuntu16 build and install python3.8.md
Normal file
30
Ubuntu16 build and install python3.8.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
## build and install openssl
|
||||||
|
because python3.8 need openssl 1.1.1
|
||||||
|
```bash
|
||||||
|
wget https://www.openssl.org/source/openssl-1.1.1u.tar.gz
|
||||||
|
tar -zxvf openssl-1.1.1u.tar.gz
|
||||||
|
cd openssl-1.1.1u
|
||||||
|
./config
|
||||||
|
make -j
|
||||||
|
sudo make install
|
||||||
|
# find libssl path
|
||||||
|
sudo find / -name "libssl.so.1.1"
|
||||||
|
|
||||||
|
sudo echo "libssl path" > /etc/id.so.conf
|
||||||
|
sudo ldconfig
|
||||||
|
openssl
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## build and install python
|
||||||
|
```bash
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
|
||||||
|
wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgz
|
||||||
|
tar -xf Python-3.8.9.tgz
|
||||||
|
cd Python-3.8.9
|
||||||
|
./configure --enable-optimizations
|
||||||
|
make -j
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user