Skip to content

Instantly share code, notes, and snippets.

@yangyushi
Created December 10, 2021 16:29
Show Gist options
  • Save yangyushi/2c2f921a69bf756a42b8d934f3631ca9 to your computer and use it in GitHub Desktop.
Save yangyushi/2c2f921a69bf756a42b8d934f3631ca9 to your computer and use it in GitHub Desktop.
compile python3.8 on Ubuntu
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