tce-load -i expat2-dev libffi-dev openssl-dev sqlite3-dev tk-dev cd Python-3.3.6 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 -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -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.3m.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