tce-load -i expat2-dev libffi-dev openssl-dev sqlite3-dev tk-dev cd Python-3.4.3 find . -name configure.ac -type f -exec sed -i 's/-O2/ /g' {} \; find . -name configure.lineno -type f -exec sed -i 's/-O2/ /g' {} \; find . -name configure -type f -exec sed -i 's/-O2/ /g' {} \; CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --enable-shared --with-system-expat --with-system-ffi find . -name Makefile -type f -exec sed -i 's/-O3/ /g' {} \; make sudo make install sudo chmod 755 /usr/local/lib/libpython3.4m.so sudo chmod 755 /usr/local/lib/libpython3.so Python build finished, but the necessary bits to build these modules were not found: _dbm _gdbm _lzma To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bz2 _tkinter