Created
December 10, 2021 16:29
-
-
Save yangyushi/2c2f921a69bf756a42b8d934f3631ca9 to your computer and use it in GitHub Desktop.
compile python3.8 on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf Python-3.8.6 | |
tar -xzf Python-3.8.6.tgz | |
cd Python-3.8.6 | |
export LD_LIBRARY_PATH=/usr/local/lib | |
export LD_RUN_PATH=/usr/local/lib | |
./configure --enable-optimizations --prefix=/usr/local\ | |
--enable-shared --enable-loadable-sqlite-extensions\ | |
CPPFLAGS="-I/usr/local/include -I/usr/local/include/openssl"\ | |
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/openssl" | |
make -j8 | |
sudo make install | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment