diff --git a/Ubuntu16 build and install python3.8.md b/Ubuntu16 build and install python3.8.md new file mode 100644 index 0000000..264cb92 --- /dev/null +++ b/Ubuntu16 build and install python3.8.md @@ -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 +```