tce-load -i compiletc openssl-1.1.1-dev sqlite3-dev tk8.6-dev glib2-dev gdbm-dev bzip2-dev Xorg-7.7-dev readline-dev wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz cd Python-2.7.18 CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.6 -ltcl8.6' find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; make [1m 38.51s] sudo make altinstall sudo ln -s python2.7 /usr/local/bin/python2 sudo ln -s python2.7-config /usr/local/bin/python2-config sudo chmod 755 /usr/local/lib/libpython2.7.so.1.0